aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-12-12 08:16:31 +0000
committerBill Nottingham <notting@redhat.com>2000-12-12 08:16:31 +0000
commitdd8b94c9e763c4c04015a9f0c87001e61686ee8b (patch)
tree5d1530c02630f9fad5badbee908efa2e9f57fec5 /sysconfig/network-scripts
parente776fdd1ea74a05c057f9d18a3bb09b3849a2c4b (diff)
downloadinitscripts-dd8b94c9e763c4c04015a9f0c87001e61686ee8b.tar
initscripts-dd8b94c9e763c4c04015a9f0c87001e61686ee8b.tar.gz
initscripts-dd8b94c9e763c4c04015a9f0c87001e61686ee8b.tar.bz2
initscripts-dd8b94c9e763c4c04015a9f0c87001e61686ee8b.tar.xz
initscripts-dd8b94c9e763c4c04015a9f0c87001e61686ee8b.zip
don't try and run pump if it's not there
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup5
1 files changed, 3 insertions, 2 deletions
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."