aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-08-07 05:46:42 +0000
committerBill Nottingham <notting@redhat.com>2000-08-07 05:46:42 +0000
commit305706cc1f323b80c82a4d66749835f1a6816544 (patch)
treef7723af88cd5d5905eeb89db6a38ad7a991711a6
parentce580633961bea5559024b0b44756ed895f22fdd (diff)
downloadinitscripts-305706cc1f323b80c82a4d66749835f1a6816544.tar
initscripts-305706cc1f323b80c82a4d66749835f1a6816544.tar.gz
initscripts-305706cc1f323b80c82a4d66749835f1a6816544.tar.bz2
initscripts-305706cc1f323b80c82a4d66749835f1a6816544.tar.xz
initscripts-305706cc1f323b80c82a4d66749835f1a6816544.zip
fix minor logic error (#11399)
-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