xenserver: Remove ip_gre kernel module when other modules are removed
authorJustin Pettit <jpettit@nicira.com>
Mon, 7 Dec 2009 23:59:20 +0000 (15:59 -0800)
committerJustin Pettit <jpettit@nicira.com>
Thu, 10 Dec 2009 08:14:10 +0000 (00:14 -0800)
xenserver/etc_init.d_vswitch

index 1b250dd..18dd7bc 100755 (executable)
@@ -104,6 +104,9 @@ function remove_modules {
     if lsmod | grep -q "openvswitch_mod"; then
         action "Removing openvswitch module" rmmod openvswitch_mod.ko
     fi
+    if lsmod | grep -q "ip_gre_mod"; then
+        action "Removing ip_gre module" rmmod ip_gre_mod.ko
+    fi
 }
 
 function reload_vswitchd {