From c342634ee3bef20d1584eb4b3cb5edda974474df Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 25 Jan 1999 13:14:37 +0000 Subject: bootpc: 2.2 kernels complain about broadcast and netmask on ifup. bootpc: Give slow 10Mbps/100Mbps autodetecting cards a second chance. --- sysconfig/network-scripts/ifup | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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" -- cgit v1.2.1