pvenetcommit: better handle non-existent pending changes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f332a16745
commit
6c83ba5823
@ -6,12 +6,10 @@ Before=sysinit.target
|
||||
|
||||
[Service]
|
||||
ExecStartPre=-/bin/rm -f /etc/openvswitch/conf.db
|
||||
ExecStartPre=-/bin/mv /etc/network/interfaces.new /etc/network/interfaces
|
||||
ExecStart=/bin/true
|
||||
Environment="FN=/etc/network/interfaces"
|
||||
ExecStart=sh -c 'if [ -f ${FN}.new ]; then mv ${FN}.new ${FN}; fi'
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=sysinit.target
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user