aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1998-03-22 20:37:30 +0000
committerErik Troan <ewt@redhat.com>1998-03-22 20:37:30 +0000
commitf1c7e8b51575a09f7eef81be2927b3e2705af007 (patch)
treeec79a9b54495f93f17b356004605573a0990ae78
parent01273ca3d0624813e7d1030b9ac94eb8156ae3da (diff)
downloadinitscripts-f1c7e8b51575a09f7eef81be2927b3e2705af007.tar
initscripts-f1c7e8b51575a09f7eef81be2927b3e2705af007.tar.gz
initscripts-f1c7e8b51575a09f7eef81be2927b3e2705af007.tar.bz2
initscripts-f1c7e8b51575a09f7eef81be2927b3e2705af007.tar.xz
initscripts-f1c7e8b51575a09f7eef81be2927b3e2705af007.zip
added netmask calculation
-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