aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index d685b355..cf2f4779 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -116,6 +116,10 @@ elif [ "$BOOTPROTO" = dhcp -a "$ISALIAS" = no ]; then
fi
if [ "$IPSETUP" != yes ]; then
+ if [ -z "$NETMASK" ]; then
+ eval `/bin/ipcalc --netmask ${IPADDR}`
+ fi
+
if [ -z "$BROADCAST" ]; then
eval `/bin/ipcalc --broadcast ${IPADDR} ${NETMASK}`
fi