4 # Provides: pvenetcommit
5 # Required-Start: checkroot
9 # Short-Description: commits network changes
14 .
/lib
/lsb
/init-functions
18 IFFN
=/etc
/network
/interfaces
20 # we cant use perl here, because this skript runs before
21 # we have /usr mounted
26 rm -f /etc
/openvswitch
/conf.db
28 if test -f "${IFFN}.new"; then
29 echo "committing new network configuration";
30 if ! mv "${IFFN}.new" $IFFN; then
31 echo "unable to commit changes to '${IFFN}' - $!\n";
35 stop|restart|force-reload
)
39 echo "Usage: /etc/init.d/pvenetcommit {start}"