aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc b/rc.d/rc
index 9a284ba1..5bf59c8a 100755
--- a/rc.d/rc
+++ b/rc.d/rc
@@ -32,7 +32,7 @@ if [ "$previous" = "N" ]; then
fi
# Get first argument. Set new runlevel to this argument.
-[ "$1" != "" ] && runlevel="$argv1"
+[ -n "$argv1" ] && runlevel="$argv1"
# Tell linuxconf what runlevel we are in
[ -d /var/run ] && echo "/etc/rc$runlevel.d" > /var/run/runlevel.dir