rc-scripts/trunk/rc.d/init.d/network
baggins
cvs at pld-linux.org
Tue Oct 25 18:56:37 CEST 2005
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
More information about the pld-cvs-commit
mailing list