diff options
Diffstat (limited to 'rc.inet1')
-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 |