diff options
Diffstat (limited to 'package/network/ipv6/6relayd/files/6relayd.init')
-rw-r--r-- | package/network/ipv6/6relayd/files/6relayd.init | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/network/ipv6/6relayd/files/6relayd.init b/package/network/ipv6/6relayd/files/6relayd.init index 89b8610..68816b7 100644 --- a/package/network/ipv6/6relayd/files/6relayd.init +++ b/package/network/ipv6/6relayd/files/6relayd.init @@ -34,7 +34,7 @@ start_6relayd() { local master masterif config_get masterif "$cfg" master network_get_device master "$masterif" - [ -z "$master" ] && master="." + [ -z "$master" -o "$master" = "$masterif" ] && master="." # Detect slave interfaces local slaves="" @@ -45,10 +45,10 @@ start_6relayd() { network_get_device slave "$slaveif" # Compatibility with old config format if [ "$mode" = "relay" -a "$master" = "." ]; then - [ -z "$slave" ] && return 0 + [ -z "$slave" -o "$slave" = "$slaveif" ] && return 0 master="$slave" else - [ -n "$slave" ] && append slaves "$slave" + [ -n "$slave" -o "$slave" = "$slaveif" ] && append slaves "$slave" fi done |