aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/netfs
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2009-12-19 15:57:03 +0200
committerBill Nottingham <notting@redhat.com>2010-01-12 17:09:10 -0500
commit265989c6fce9523b46aa9020f241ab2450307aa4 (patch)
tree168538aa78bb8280848af13978f56fef5caf2c05 /rc.d/init.d/netfs
parentd4c58cd1c84f99030c3f4778d2c64377838e0634 (diff)
downloadinitscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar.gz
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar.bz2
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar.xz
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.zip
Eliminate bunch of unnecessary stat calls and command invocations.
Diffstat (limited to 'rc.d/init.d/netfs')
-rwxr-xr-xrc.d/init.d/netfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/netfs b/rc.d/init.d/netfs
index 17cea9f8..6294aeb9 100755
--- a/rc.d/init.d/netfs
+++ b/rc.d/init.d/netfs
@@ -32,7 +32,7 @@ NETDEVMTAB=$(LC_ALL=C awk '$4 ~ /_netdev/ && $2 != "/" { print $2 }' /etc/mtab)
# See how we were called.
case "$1" in
start)
- [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] && exit 0
+ [ ! -f /var/lock/subsys/network ] && [ ! -f /var/lock/subsys/NetworkManager ] && exit 0
[ "$EUID" != "0" ] && exit 4
[ -n "$NFSFSTAB" ] &&
{
@@ -46,7 +46,7 @@ case "$1" in
if [ -f /etc/mdadm.conf ]; then
mdadm -A -s
fi
- if [ -f /etc/multipath.conf -a -x /sbin/multipath ]; then
+ if [ -f /etc/multipath.conf ] && [ -x /sbin/multipath ]; then
modprobe dm-multipath >/dev/null 2>&1
/sbin/multipath -v 0
if [ -x /sbin/kpartx ]; then