aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-01-14 04:40:28 +0000
committerBill Nottingham <notting@redhat.com>2003-01-14 04:40:28 +0000
commit7773e202d5c029c6a625cdbac1cba765935bec28 (patch)
treeb447687535563fcfbc0703d3607750edacc63da2 /sysconfig/network-scripts
parent99865bd61a090b1b5ffb0a7daeb6ba1f8410b9ac (diff)
downloadinitscripts-7773e202d5c029c6a625cdbac1cba765935bec28.tar
initscripts-7773e202d5c029c6a625cdbac1cba765935bec28.tar.gz
initscripts-7773e202d5c029c6a625cdbac1cba765935bec28.tar.bz2
initscripts-7773e202d5c029c6a625cdbac1cba765935bec28.tar.xz
initscripts-7773e202d5c029c6a625cdbac1cba765935bec28.zip
recalculate BROADCAST if one wasn't specified (#78052)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-aliases2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-aliases b/sysconfig/network-scripts/ifup-aliases
index 7d2f3903..d568d818 100755
--- a/sysconfig/network-scripts/ifup-aliases
+++ b/sysconfig/network-scripts/ifup-aliases
@@ -163,7 +163,7 @@ function new_interface ()
eval `/bin/ipcalc --netmask ${IPADDR}`
fi
- if [ -z "$BROADCAST" ]; then
+ if [ -z "$BROADCAST" -o "$BROADCAST" = "$default_BROADCAST" ]; then
eval `/bin/ipcalc --broadcast ${IPADDR} ${NETMASK}`
nma=$NETMASK; nmb=${nma#*.}; nmc=${nmb#*.};
NMGLOP="${nma%%.*}_${nmb%%.*}_${nmc%%.*}_${nmc#*.}";