diff options
author | Steven Barth <cyrus@openwrt.org> | 2012-12-09 13:54:22 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2012-12-09 13:54:22 +0000 |
commit | a07ddb955f5a26143d6083ac6c4e85798c76328b (patch) | |
tree | cb452d8fb1d6653a0728d16b3c347271bd09be7f /package/network/ipv6/ipv6-support/files/dhcpv6.sh | |
parent | 57d853ffc4fd718a4c28b5b7da0f4c467ceb83b5 (diff) | |
download | upstream-a07ddb955f5a26143d6083ac6c4e85798c76328b.tar.gz upstream-a07ddb955f5a26143d6083ac6c4e85798c76328b.tar.bz2 upstream-a07ddb955f5a26143d6083ac6c4e85798c76328b.zip |
ipv6-support: Next iteration * Make ula_prefix a global option * Add preliminary support for NAT (Linux >= 3.7, ip6tables >= 1.4.17) * Minor fixes for prefix fallback
SVN-Revision: 34586
Diffstat (limited to 'package/network/ipv6/ipv6-support/files/dhcpv6.sh')
-rwxr-xr-x | package/network/ipv6/ipv6-support/files/dhcpv6.sh | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/package/network/ipv6/ipv6-support/files/dhcpv6.sh b/package/network/ipv6/ipv6-support/files/dhcpv6.sh index b9428dd330..7e69b3f6bd 100755 --- a/package/network/ipv6/ipv6-support/files/dhcpv6.sh +++ b/package/network/ipv6/ipv6-support/files/dhcpv6.sh @@ -24,14 +24,9 @@ done # Enable relaying if requested -local prefix_fallback -config_get prefix_fallback "$network" prefix_fallback -[ "$prefix_fallback" == "relay" -a -z "$PREFIXES" -a "$state" != "unbound" ] && - restart_relay "$network" "fallback" - -# Disable relay if requested -[ "$prefix_fallback" != "relay" -o -n "$PREFIXES" -o "$state" == "unbound" ] && - restart_relay "$network" +local fallback="stop" +[ -z "$PREFIXES" -a "$state" != "unbound" ] && fallback="start" +setup_prefix_fallback "$fallback" "$network" "$device" # Operations in case of success |