From: Ben Pfaff Date: Wed, 5 Nov 2008 18:20:04 +0000 (-0800) Subject: Unload kernel module when stopping switch, in Debian init scripts. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8798af6e81a2db8d10131b45b9edad4f1970732a;p=sliver-openvswitch.git Unload kernel module when stopping switch, in Debian init scripts. This way, we have a better chance at ensuring that the secchan and the kernel module are exactly the same version. --- diff --git a/debian/openflow-switch.init b/debian/openflow-switch.init index 323c7f81a..79dad496f 100755 --- a/debian/openflow-switch.init +++ b/debian/openflow-switch.init @@ -294,6 +294,7 @@ case "$1" in check_op "Removing $netdev from datapath" dpctl delif nl:0 $netdev done check_op "Deleting datapath" dpctl deldp nl:0 + check_op "Unloading kernel module" modprobe -r openflow_mod ;; force-stop) echo -n "Forcefully stopping $DESC: "