aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-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."