diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2009-12-19 15:57:03 +0200 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-01-12 17:09:10 -0500 |
commit | 265989c6fce9523b46aa9020f241ab2450307aa4 (patch) | |
tree | 168538aa78bb8280848af13978f56fef5caf2c05 /sysconfig/network-scripts/ifup-ippp | |
parent | d4c58cd1c84f99030c3f4778d2c64377838e0634 (diff) | |
download | initscripts-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 'sysconfig/network-scripts/ifup-ippp')
-rwxr-xr-x | sysconfig/network-scripts/ifup-ippp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp index 643b2a8c..7cfe6f39 100755 --- a/sysconfig/network-scripts/ifup-ippp +++ b/sysconfig/network-scripts/ifup-ippp @@ -23,20 +23,20 @@ if [ "${2}" = "boot" -a "${ONBOOT}" = "no" ]; then exit fi -if [ ! -f /var/lock/subsys/isdn -a -x /etc/init.d/isdn ] ; then +if [ ! -f /var/lock/subsys/isdn ] && [ -x /etc/init.d/isdn ] ; then /etc/init.d/isdn start fi # check that ipppd is available for syncppp if [ "$ENCAP" = "syncppp" ]; then - if [ ! -x /usr/sbin/ipppd -a ! -x /sbin/ipppd ] ; then + if [ ! -x /sbin/ipppd ] && [ ! -x /usr/sbin/ipppd ] ; then /usr/bin/logger -p daemon.info -t ifup-ippp "ipppd does not exist or is not executable" exit 1 fi fi # check that isdnctrl is available -if [ ! -x /usr/sbin/isdnctrl -a ! -x /sbin/isdnctrl ] ; then +if [ ! -x /sbin/isdnctrl ] && [ ! -x /usr/sbin/isdnctrl ] ; then /usr/bin/logger -p daemon.info -t ifup-ippp "isdnctrl does not exist or is not executable" exit 1 fi @@ -74,7 +74,7 @@ function start_ibod() [ -f /var/lock/subsys/ibod ] && return device=$1 - if [ -f /etc/isdn/ibod.cf -a -x /usr/sbin/ibod ] ; then + if [ -f /etc/isdn/ibod.cf ] && [ -x /usr/sbin/ibod ] ; then ibod $device & pid=$(pidof ibod) [ -n "$pid" ] && touch /var/lock/subsys/ibod |