diff options
author | Erik Troan <ewt@redhat.com> | 1998-03-22 20:16:31 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1998-03-22 20:16:31 +0000 |
commit | 76b469d0e5bbab1b6d5935e50a38cde3ca35bbf8 (patch) | |
tree | 9ecbc97a32e2e42c61fa39d418a2a7b8f3482ba4 /sysconfig/network-scripts/ifup | |
parent | b93c29b101f48037b803dee1e82bae733af20d86 (diff) | |
download | initscripts-76b469d0e5bbab1b6d5935e50a38cde3ca35bbf8.tar initscripts-76b469d0e5bbab1b6d5935e50a38cde3ca35bbf8.tar.gz initscripts-76b469d0e5bbab1b6d5935e50a38cde3ca35bbf8.tar.bz2 initscripts-76b469d0e5bbab1b6d5935e50a38cde3ca35bbf8.tar.xz initscripts-76b469d0e5bbab1b6d5935e50a38cde3ca35bbf8.zip |
fixed network address calculations
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 294dcfc7..d685b355 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -80,6 +80,7 @@ if [ "$BOOTPROTO" = bootp -a "$ISALIAS" = no ]; then route add default ${DEVICE} echo "Sending bootp request" TMPFILE=`/bin/mktemp /tmp/bootp-${DEVICE}.XXXXXX` || { + ifconfig ${DEVICE} down echo 'mktemp failed' exit 1 } @@ -119,8 +120,8 @@ if [ "$IPSETUP" != yes ]; then eval `/bin/ipcalc --broadcast ${IPADDR} ${NETMASK}` fi - if [ -z "$NETMASK" ]; then - eval `/bin/ipcalc --netmask ${IPADDR} ${NETMASK}` + if [ -z "$NETWORK" ]; then + eval `/bin/ipcalc --network ${IPADDR} ${NETMASK}` fi ifconfig ${DEVICE} ${MACADDR:+hw ether $MACADDR} ${IPADDR} \ |