aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 5762a9fa..f59b99e5 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -75,7 +75,8 @@ fi
if [ "$BOOTPROTO" = bootp -a "$ISALIAS" = no ]; then
ifconfig ${DEVICE} down
- ifconfig ${DEVICE} 0.0.0.0 broadcast 255.255.255.255 netmask 0.0.0.0
+# XXX 2.2 kernels complain about broadcast and netmask
+ ifconfig ${DEVICE} 0.0.0.0 # broadcast 255.255.255.255 netmask 0.0.0.0
route add default ${DEVICE}
echo "Sending bootp request"
TMPFILE=`/bin/mktemp /tmp/bootp-${DEVICE}.XXXXXX` || {
@@ -83,7 +84,12 @@ if [ "$BOOTPROTO" = bootp -a "$ISALIAS" = no ]; then
echo 'mktemp failed'
exit 1
}
+# XXX Give slow 10Mbps/100Mbps autodetecting cards a second chance
bootpc --returniffail --timeoutwait 6 --dev ${DEVICE} 2>/dev/null > ${TMPFILE}
+ if [ "$?" != "0" ]; then
+ bootpc --returniffail --timeoutwait 6 --dev ${DEVICE} 2>/dev/null > ${TMPFILE}
+ fi
+
if [ "$?" = "0" ]; then
. ${TMPFILE}
BOOTPHOSTNAME="$HOSTNAME"