Author: baggins
Date: Tue Oct 25 18:56:25 2005
New Revision: 6485

Modified:
   rc-scripts/trunk/rc.d/init.d/network
Log:
- don't start interfaces inside vserver


Modified: rc-scripts/trunk/rc.d/init.d/network
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/network        (original)
+++ rc-scripts/trunk/rc.d/init.d/network        Tue Oct 25 18:56:25 2005
@@ -175,6 +175,11 @@
   start)
        rc_splash "bootnetwork start"
 
+       if is_yes "$VSERVER"; then 
+               touch /var/lock/subsys/network
+               exit 0
+       fi
+                                                   
        network_init
 
        for i in $interfaces_boot $interfaces_vlan_boot $interfaces_sit_boot ; 
do
@@ -217,6 +222,11 @@
                fi
        fi
 
+       if is_yes "$VSERVER"; then
+               rm -f /var/lock/subsys/network
+               exit 0
+       fi
+
        for i in $tunnels; do
                run_cmd -a "$(nls 'Shutting down tunnel interface %s' "$i")" 
/sbin/ifdown tnlcfg-$i boot
                run_cmd -a "$(nls 'Removing tunnel %s' "$i")" /sbin/tnldown $i 
boot
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to