From 8798af6e81a2db8d10131b45b9edad4f1970732a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 5 Nov 2008 10:20:04 -0800 Subject: [PATCH] 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. --- debian/openflow-switch.init | 1 + 1 file changed, 1 insertion(+) 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: " -- 2.30.2