X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.init;h=dd4bb05965bfd14dea8de92d84518687db6032b3;hb=a39a859a3066bb637de16edd4f26eab77fb594a6;hp=da4ec692d202c20f2abb0fa951cf11af512d54b1;hpb=baa905d36b831881ceb20686f567dead3ec0bf14;p=openvswitch diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index da4ec692..dd4bb059 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -261,6 +261,18 @@ case "$1" in exit 1 fi + echo -n "Loading ip_gre_mod: " + if grep -q '^ip_gre$' /proc/modules; then + modprobe -r ip_gre + fi + if grep -q '^ip_gre_mod$' /proc/modules; then + echo "already loaded, nothing to do." + elif modprobe ip_gre_mod; then + echo "success." + else + echo "could not find module." + fi + for netdev in $NETDEVS; do check_op "Removing IP address from $netdev" ifconfig $netdev 0.0.0.0 done @@ -386,6 +398,10 @@ case "$1" in echo "$NAME." check_op "Deleting datapath" ovs-dpctl del-dp of0 + echo -n "Unloading ip_gre module: " + if modprobe -r ip_gre_mod; then + echo "success." + fi check_op "Unloading kernel module" modprobe -r openvswitch_mod ;; force-stop)