aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-aliases
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/ifup-aliases')
-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#*.}";