diff options
Diffstat (limited to 'main/dnsmasq/dnsmasq.initd')
-rw-r--r-- | main/dnsmasq/dnsmasq.initd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/dnsmasq/dnsmasq.initd b/main/dnsmasq/dnsmasq.initd index 141ed5b682..9af390f56b 100644 --- a/main/dnsmasq/dnsmasq.initd +++ b/main/dnsmasq/dnsmasq.initd @@ -55,7 +55,10 @@ setup_bridge() { ip link set dev $BRIDGE address ${BRIDGE_MAC} && \ for ADDR in $BRIDGE_ADDR $BRIDGE_ADDR_EXTRA; do - ip addr add ${ADDR}/${BRIDGE_NETMASK} dev $BRIDGE + case "$ADDR" in + */*) ip addr add ${ADDR} dev $BRIDGE;; + *) ip addr add ${ADDR}/${BRIDGE_NETMASK} dev $BRIDGE;; + esac done && ip link set dev $BRIDGE up echo 1 > /proc/sys/net/ipv4/ip_forward |