aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/odhcp6c/files/dhcpv6.sh
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-02-01 13:38:47 +0000
committerSteven Barth <steven@midlink.org>2013-02-01 13:38:47 +0000
commitdeed0b01982de10ca72a9a59ac60162eb9313f8e (patch)
tree1c7ff1bc343460872ca605f6dae35e3d779b572c /package/network/ipv6/odhcp6c/files/dhcpv6.sh
parent109d4f04b0f2ab118795bd1aac9ba7573ef6d39d (diff)
downloadupstream-deed0b01982de10ca72a9a59ac60162eb9313f8e.tar.gz
upstream-deed0b01982de10ca72a9a59ac60162eb9313f8e.tar.bz2
upstream-deed0b01982de10ca72a9a59ac60162eb9313f8e.zip
odhcp6c: allow IPv6-config via SLAAC-only if no prefix is requested
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35421 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/odhcp6c/files/dhcpv6.sh')
-rwxr-xr-xpackage/network/ipv6/odhcp6c/files/dhcpv6.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.sh b/package/network/ipv6/odhcp6c/files/dhcpv6.sh
index 99867cd99d..4bd3a67ed9 100755
--- a/package/network/ipv6/odhcp6c/files/dhcpv6.sh
+++ b/package/network/ipv6/odhcp6c/files/dhcpv6.sh
@@ -9,15 +9,15 @@ proto_dhcpv6_init_config() {
proto_config_add_string "reqprefix"
proto_config_add_string "clientid"
proto_config_add_string "reqopts"
- proto_config_add_string "allow_slaaconly"
+ proto_config_add_string "noslaaconly"
}
proto_dhcpv6_setup() {
local config="$1"
local iface="$2"
- local reqaddress reqprefix clientid reqopts allow_slaaconly
- json_get_vars reqaddress reqprefix clientid reqopts allow_slaaconly
+ local reqaddress reqprefix clientid reqopts noslaaconly
+ json_get_vars reqaddress reqprefix clientid reqopts noslaaconly
# Configure
@@ -29,7 +29,7 @@ proto_dhcpv6_setup() {
[ -n "$clientid" ] && append opts "-c$clientid"
- [ "$allow_slaaconly" = "1" ] && append opts "-S"
+ [ "$noslaaconly" = "1" ] && append opts "-S"
for opt in $reqopts; do
append opts "-r$opt"