summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2019-11-06 18:24:01 +0000
committerRobby Workman <rworkman@slackware.com>2019-11-06 19:52:24 -0600
commit8639c80c44736c09e56c095813991112f0dbd4ec (patch)
tree150355b0ed813001f58e852f93b2f4e36fb6ce34
parent1a227126a525baec2030ec9cfc9cd8a503ba6c7a (diff)
downloadslacknetsetup-8639c80c44736c09e56c095813991112f0dbd4ec.tar.xz
Use 'broadcast +' for bringing up interfaces in IPALIASES block.
-rw-r--r--rc.inet14
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.inet1 b/rc.inet1
index 691db79..ebbd243 100644
--- a/rc.inet1
+++ b/rc.inet1
@@ -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