diff options
author | Bill Nottingham <notting@redhat.com> | 2003-01-14 04:40:28 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2003-01-14 04:40:28 +0000 |
commit | 7773e202d5c029c6a625cdbac1cba765935bec28 (patch) | |
tree | b447687535563fcfbc0703d3607750edacc63da2 | |
parent | 99865bd61a090b1b5ffb0a7daeb6ba1f8410b9ac (diff) | |
download | initscripts-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)
-rwxr-xr-x | sysconfig/network-scripts/ifup-aliases | 2 |
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#*.}"; |