ppp: add unconditional autoipv6-trigger

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42860 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Steven Barth 2014-10-09 07:38:25 +00:00
parent ca4fa0c501
commit 46e31e96bd
2 changed files with 10 additions and 1 deletions

View File

@ -19,3 +19,12 @@ proto_send_update "$PPP_IPPARAM"
[ -x "$SCRIPT" ] && "$SCRIPT" "$@"
done
}
if [ -n "$AUTOIPV6" ]; then
json_init
json_add_string name "${PPP_IPPARAM}_dhcpv6"
json_add_string ifname "@$PPP_IPPARAM"
json_add_string proto "dhcpv6"
json_close_object
ubus call network add_dynamic "$(json_dump)"
fi

View File

@ -30,7 +30,7 @@ ppp_generic_setup() {
ipv6=""
elif [ -z "$ipv6" -o "$ipv6" = auto ]; then
ipv6=1
proto_export "IPV6IFACE=${config}6"
proto_export "AUTOIPV6=1"
fi
if [ "${demand:-0}" -gt 0 ]; then