From 76b469d0e5bbab1b6d5935e50a38cde3ca35bbf8 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Sun, 22 Mar 1998 20:16:31 +0000 Subject: fixed network address calculations --- sysconfig/network-scripts/ifup | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysconfig') 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} \ -- cgit v1.2.1