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 1b250dd84ef8cbba6f3ec75a711410d415c95539..18dd7bc69663f3fae3a14e0369a7e1b55237878e 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 {