rc-scripts/branches/vserver/rc.d/rc
baggins
cvs at pld-linux.org
Wed Oct 19 13:02:35 CEST 2005
Author: baggins
Date: Wed Oct 19 13:02:32 2005
New Revision: 6463
Modified:
rc-scripts/branches/vserver/rc.d/rc
Log:
- check for proper first argument in correct place
Modified: rc-scripts/branches/vserver/rc.d/rc
==============================================================================
--- rc-scripts/branches/vserver/rc.d/rc (original)
+++ rc-scripts/branches/vserver/rc.d/rc Wed Oct 19 13:02:32 2005
@@ -56,12 +56,12 @@
previous=$1
export runlevel previous
+# Get first argument. Set new runlevel to this argument.
+[ -n "$argv1" ] && runlevel="$argv1"
+
# if previous runlevel = current runlevel do nothing
[ "$runlevel" = "$previous" ] && exit 0
-# Get first argument. Set new runlevel to this argument.
-[ -n "$1" ] && runlevel="$argv1"
-
# if runlevel is not 0 (halt) or 6 (reboot) run rc.sysinit
# BUT only if rc is run standalone (not run by init, as init will run rc.sysinit)
if [ "$previous" = "#" -a "$runlevel" != "0" -a "$runlevel" != "6" ]; then
More information about the pld-cvs-commit
mailing list