aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup5
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} \