Unload kernel module when stopping switch, in Debian init scripts.
authorBen Pfaff <blp@nicira.com>
Wed, 5 Nov 2008 18:20:04 +0000 (10:20 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 5 Nov 2008 18:20:04 +0000 (10:20 -0800)
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

index 323c7f81ac66fdc29be4549e816bebb758c02208..79dad496fe7a11bb967548fdadd03d2bca819886 100755 (executable)
@@ -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: "