diff options
author | Darren 'Tadgy' Austin <darren@afterdark.org.uk> | 2019-11-06 18:24:01 +0000 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2019-11-06 19:52:24 -0600 |
commit | 8639c80c44736c09e56c095813991112f0dbd4ec (patch) | |
tree | 150355b0ed813001f58e852f93b2f4e36fb6ce34 | |
parent | 1a227126a525baec2030ec9cfc9cd8a503ba6c7a (diff) | |
download | slacknetsetup-8639c80c44736c09e56c095813991112f0dbd4ec.tar.xz |
Use 'broadcast +' for bringing up interfaces in IPALIASES block.
-rw-r--r-- | rc.inet1 | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -319,8 +319,8 @@ if_up() { ip="${ipalias%/*}" nm="${ipalias#*/}" [ -z "$nm" ] || [ "$ip" == "$nm" ] && nm="24" - echo "/etc/rc.d/rc.inet1: /sbin/ip -4 address add ${ip}/${nm} dev ${1} label ${1}:${num}" | $LOGGER - if /sbin/ip -4 address add ${ip}/${nm} dev ${1} label ${1}:${num}; then + echo "/etc/rc.d/rc.inet1: /sbin/ip -4 address add ${ip}/${nm} broadcast + dev ${1} label ${1}:${num}" | $LOGGER + if /sbin/ip -4 address add ${ip}/${nm} broadcast + dev ${1} label ${1}:${num}; then num=$(($num + 1)) else echo "/etc/rc.d/rc.inet1: failed to add IP ${ip} to ${1}" | $LOGGER |