diff options
author | Erik Troan <ewt@redhat.com> | 1998-03-22 20:37:30 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1998-03-22 20:37:30 +0000 |
commit | f1c7e8b51575a09f7eef81be2927b3e2705af007 (patch) | |
tree | ec79a9b54495f93f17b356004605573a0990ae78 /sysconfig | |
parent | 01273ca3d0624813e7d1030b9ac94eb8156ae3da (diff) | |
download | initscripts-f1c7e8b51575a09f7eef81be2927b3e2705af007.tar initscripts-f1c7e8b51575a09f7eef81be2927b3e2705af007.tar.gz initscripts-f1c7e8b51575a09f7eef81be2927b3e2705af007.tar.bz2 initscripts-f1c7e8b51575a09f7eef81be2927b3e2705af007.tar.xz initscripts-f1c7e8b51575a09f7eef81be2927b3e2705af007.zip |
added netmask calculation
Diffstat (limited to 'sysconfig')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 4 |
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 |