aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1998-03-09 22:30:05 +0000
committerErik Troan <ewt@redhat.com>1998-03-09 22:30:05 +0000
commitc6dcb375d378065a704dcd39a0c96a02a5384f8f (patch)
tree4fa12c909689d509a708f2426cbc951158634900 /sysconfig
parent7f7f917fc0d3832add7070636ba7a9ca32cc052a (diff)
downloadinitscripts-c6dcb375d378065a704dcd39a0c96a02a5384f8f.tar
initscripts-c6dcb375d378065a704dcd39a0c96a02a5384f8f.tar.gz
initscripts-c6dcb375d378065a704dcd39a0c96a02a5384f8f.tar.bz2
initscripts-c6dcb375d378065a704dcd39a0c96a02a5384f8f.tar.xz
initscripts-c6dcb375d378065a704dcd39a0c96a02a5384f8f.zip
if bootp fails and there is no fallback IP, take down the device
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 714d972c..3f791533 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -87,6 +87,7 @@ if [ "$BOOTPROTO" = bootp -a "$ISALIAS" = no ]; then
BOOTPHOSTNAME="$HOSTNAME"
echo "bootp response received -- using IP ${IPADDR}"
elif [ -z "$IPADDR" ]; then
+ ifconfig ${DEVICE} down
echo "No bootp response recieved -- not configuring device ${DEVICE}."
rm -f ${TMPFILE}
exit 1