diff options
author | Erik Troan <ewt@redhat.com> | 1998-03-09 22:30:05 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1998-03-09 22:30:05 +0000 |
commit | c6dcb375d378065a704dcd39a0c96a02a5384f8f (patch) | |
tree | 4fa12c909689d509a708f2426cbc951158634900 /sysconfig/network-scripts/ifup | |
parent | 7f7f917fc0d3832add7070636ba7a9ca32cc052a (diff) | |
download | initscripts-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/network-scripts/ifup')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 1 |
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 |