aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-09-20 17:45:22 +0000
committerBill Nottingham <notting@redhat.com>1999-09-20 17:45:22 +0000
commit3249347f84eead7b7a498893f7c591955e3a5393 (patch)
tree221900f9489fd1d5eb9d3cae7c37f71edddedd3b
parent628e351b9d5a9c990cd862ba7f504c1ca4183585 (diff)
downloadinitscripts-3249347f84eead7b7a498893f7c591955e3a5393.tar
initscripts-3249347f84eead7b7a498893f7c591955e3a5393.tar.gz
initscripts-3249347f84eead7b7a498893f7c591955e3a5393.tar.bz2
initscripts-3249347f84eead7b7a498893f7c591955e3a5393.tar.xz
initscripts-3249347f84eead7b7a498893f7c591955e3a5393.zip
don't use expr, but require bash to do math
-rwxr-xr-xrc.d/init.d/netfs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs
index ec679d1e..57cb462e 100755
--- a/rc.d/init.d/netfs
+++ b/rc.d/init.d/netfs
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# netfs Mount network filesystems.
#
@@ -53,9 +53,9 @@ case "$1" in
sleep 2
remaining=`awk '!/^#/ && $3 ~ /^nfs/ {print $2}' /proc/mounts`
[ -z "$remaining" ] && break
- fuser -k -m $sig $remaining >/dev/null
+ /sbin/fuser -k -m $sig $remaining >/dev/null
sleep 5
- retry=`expr $retry - 1`
+ retry=$(($retry - 1))
sig=-9
done
}