From dd8b94c9e763c4c04015a9f0c87001e61686ee8b Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 12 Dec 2000 08:16:31 +0000 Subject: don't try and run pump if it's not there --- sysconfig/network-scripts/ifup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysconfig/network-scripts/ifup') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index b232f0c1..346485d3 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -103,9 +103,10 @@ if [ -n "${DYNCONFIG}" ]; then DHCPDARGS="${DHCPDARGS -R" fi echo -n "Determining IP information for ${DEVICE}..." - if /sbin/pump ${PUMPARGS} -i ${DEVICE} ; then + + if [ -x /sbin/pump ] && /sbin/pump ${PUMPARGS} -i ${DEVICE} ; then echo " done." - elif /sbin/dhcpcd ${DHCPCDARGS} ${DEVICE} ; then + elif [ -x /sbin/dhcpcd ] && /sbin/dhcpcd ${DHCPCDARGS} ${DEVICE} ; then echo " done." else echo " failed." -- cgit v1.2.1