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: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8798af6e81a2db8d10131b45b9edad4f1970732a;p=openvswitch 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 323c7f81..79dad496 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: "