aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-08-25 19:39:34 +0000
committerBill Nottingham <notting@redhat.com>2004-08-25 19:39:34 +0000
commit8497b6cf766c907619693f143e583690a3a872cc (patch)
treed277091c0adbf87798f6f83e4bc743845d94572d /rc.d/rc.sysinit
parentd9ec646cdd1aefb6f387b0eb1947ce9bced7f849 (diff)
downloadinitscripts-8497b6cf766c907619693f143e583690a3a872cc.tar
initscripts-8497b6cf766c907619693f143e583690a3a872cc.tar.gz
initscripts-8497b6cf766c907619693f143e583690a3a872cc.tar.bz2
initscripts-8497b6cf766c907619693f143e583690a3a872cc.tar.xz
initscripts-8497b6cf766c907619693f143e583690a3a872cc.zip
minor cleanup (#115028, <leonard-rh-bugzilla@den.ottolander.nl>)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit20
1 files changed, 10 insertions, 10 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 69e429d6..09a9d0ac 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -234,12 +234,12 @@ if ! strstr "$cmdline" nousb && ! strstr "$cmdline" nomodules ; then
fi
fi
-if [ $usb = 1 -a ! -f /proc/bus/usb/devices ]; then
+if [ $usb -eq 1 -a ! -f /proc/bus/usb/devices ]; then
action $"Mounting USB filesystem: " mount -t usbdevfs usbdevfs /proc/bus/usb
fi
needusbstorage=
-if [ $usb = "1" ]; then
+if [ $usb -eq "1" ]; then
needusbstorage=`LC_ALL=C grep -e "^I.*Cls=08" /proc/bus/usb/devices 2>/dev/null`
fi
@@ -316,10 +316,10 @@ if [ -z "$fastboot" -a "$READONLY" != "yes" -a "X$ROOTFSTYPE" != "Xnfs" -a "X$RO
initlog -c "fsck -T -a $rootdev $fsckoptions"
rc=$?
- if [ "$rc" = "0" ]; then
+ if [ "$rc" -eq "0" ]; then
success "$STRING"
echo
- elif [ "$rc" = "1" ]; then
+ elif [ "$rc" -eq "1" ]; then
passed "$STRING"
echo
fi
@@ -347,7 +347,7 @@ if [ -z "$fastboot" -a "$READONLY" != "yes" -a "X$ROOTFSTYPE" != "Xnfs" -a "X$RO
mount -n -o remount,ro /
echo $"Automatic reboot in progress."
reboot -f
- elif [ "$rc" = "1" ]; then
+ elif [ "$rc" -eq "1" ]; then
_RUN_QUOTACHECK=1
fi
fi
@@ -370,8 +370,8 @@ LC_ALL=C grep -E '[[:space:]]+/[[:space:]]+' /etc/fstab | \
awk '{ print $4 }' | \
LC_ALL=C fgrep -q quota
_ROOT_HAS_QUOTA=$?
-if [ X"$_RUN_QUOTACHECK" = X1 -a \
- "$_ROOT_HAS_QUOTA" = "0" -a \
+if [ "X$_RUN_QUOTACHECK" = "X1" -a \
+ "X$_ROOT_HAS_QUOTA" = "X0" -a \
-x /sbin/quotacheck ]; then
if [ -x /sbin/convertquota ]; then
if [ -f /quota.user ]; then
@@ -599,10 +599,10 @@ if [ -z "$fastboot" ]; then
echo $STRING
initlog -c "fsck -T -R -A -a $fsckoptions"
rc=$?
- if [ "$rc" = "0" ]; then
+ if [ "$rc" -eq "0" ]; then
success "$STRING"
echo
- elif [ "$rc" = "1" ]; then
+ elif [ "$rc" -eq "1" ]; then
passed "$STRING"
echo
fi
@@ -630,7 +630,7 @@ if [ -z "$fastboot" ]; then
mount -n -o remount,ro /
echo $"Automatic reboot in progress."
reboot -f
- elif [ "$rc" = "1" -a -x /sbin/quotacheck ]; then
+ elif [ "$rc" -eq "1" -a -x /sbin/quotacheck ]; then
_RUN_QUOTACHECK=1
fi
fi