aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnson <jbj@redhat.com>1999-01-25 13:14:37 +0000
committerJeff Johnson <jbj@redhat.com>1999-01-25 13:14:37 +0000
commitc342634ee3bef20d1584eb4b3cb5edda974474df (patch)
treed7cf4235a426befea0de8eb324e5ff935d5c6524
parentc73da0b266874a028854f3aedebafccb74f24d43 (diff)
downloadinitscripts-c342634ee3bef20d1584eb4b3cb5edda974474df.tar
initscripts-c342634ee3bef20d1584eb4b3cb5edda974474df.tar.gz
initscripts-c342634ee3bef20d1584eb4b3cb5edda974474df.tar.bz2
initscripts-c342634ee3bef20d1584eb4b3cb5edda974474df.tar.xz
initscripts-c342634ee3bef20d1584eb4b3cb5edda974474df.zip
bootpc: 2.2 kernels complain about broadcast and netmask on ifup.
bootpc: Give slow 10Mbps/100Mbps autodetecting cards a second chance.
-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"