rc-scripts/trunk/rc.d/init.d/network
glen
cvs at pld-linux.org
Fri Feb 10 20:17:26 CET 2006
Author: glen
Date: Fri Feb 10 20:17:20 2006
New Revision: 6958
Modified:
rc-scripts/trunk/rc.d/init.d/network
Log:
One can't (u)mount anything inside vserver, not even network mounts
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 Fri Feb 10 20:17:20 2006
@@ -206,6 +206,11 @@
touch /var/lock/subsys/network
;;
stop)
+ if is_yes "$VSERVER"; then
+ rm -f /var/lock/subsys/network
+ exit 0
+ fi
+
# If we go to runlevel 0, 1 or 6 then umount all network fs
if [ "$RUNLEVEL" = "6" -o "$RUNLEVEL" = "0" -o "$RUNLEVEL" = "1" ]; then
if [ -x /etc/rc.d/init.d/netfs -a -f /var/lock/subsys/netfs ];
@@ -228,11 +233,6 @@
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