aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorPreston Brown <pbrown@redhat.com>2000-06-08 21:35:13 +0000
committerPreston Brown <pbrown@redhat.com>2000-06-08 21:35:13 +0000
commit88c57f58ecc56c1d2b4580951cd00ec510052dad (patch)
tree46ccd640ba3928e27278b684f49a25a4a8c5435d /sysconfig/network-scripts
parentee80366b5be86f730539618211d573560a1139de (diff)
downloadinitscripts-88c57f58ecc56c1d2b4580951cd00ec510052dad.tar
initscripts-88c57f58ecc56c1d2b4580951cd00ec510052dad.tar.gz
initscripts-88c57f58ecc56c1d2b4580951cd00ec510052dad.tar.bz2
initscripts-88c57f58ecc56c1d2b4580951cd00ec510052dad.tar.xz
initscripts-88c57f58ecc56c1d2b4580951cd00ec510052dad.zip
use dhcpcd if pump fails.
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup9
1 files changed, 7 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index b9e9357c..c95ad71d 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -52,7 +52,7 @@ if [ "$BOOTP" = "yes" ]; then
fi
if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
- PUMP=true
+ DYNCONFIG=true
fi
OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-${DEVICETYPE}"
@@ -83,17 +83,22 @@ if [ -n "$MACADDR" ]; then
ifconfig ${DEVICE} hw ether ${MACADDR}
fi
-if [ -n "$PUMP" ]; then
+if [ -n "$DYNCONFIG" ]; then
PUMPARGS=
+ DHCPCDARGS=
if [ -n "$DHCP_HOSTNAME" ]; then
PUMPARGS="-h $DHCP_HOSTNAME"
+ DHCPCDARGS="-h $DHCP_HOSTNAME"
fi
if [ -n "$NEEDHOSTNAME" ]; then
PUMPARGS="$PUMPARGS --lookup-hostname"
+ DHCPCDARGS="$DHCPCDARGS -H"
fi
echo -n "Determining IP information for $DEVICE..."
if /sbin/pump $PUMPARGS -i $DEVICE ; then
echo " done."
+ else if /sbin/dhcpcd $DHCPCDARGS $DEVICE ; then
+ echo " done."
else
echo " failed."
exit 1