diff options
author | Steven Barth <cyrus@openwrt.org> | 2013-05-13 17:12:25 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2013-05-13 17:12:25 +0000 |
commit | ad93a571c6abb82d3ddcc9200388c7839712a0e5 (patch) | |
tree | 6d4dfc70978378e5b4a08ca5a5183ae54e56f74f /package/network/ipv6/odhcp6c/files/dhcpv6.script | |
parent | 973dad61b0be42c175692350db232cb0d44214d0 (diff) | |
download | upstream-ad93a571c6abb82d3ddcc9200388c7839712a0e5.tar.gz upstream-ad93a571c6abb82d3ddcc9200388c7839712a0e5.tar.bz2 upstream-ad93a571c6abb82d3ddcc9200388c7839712a0e5.zip |
odhcp6c: added support for DS-Lite + various fixes
SVN-Revision: 36625
Diffstat (limited to 'package/network/ipv6/odhcp6c/files/dhcpv6.script')
-rwxr-xr-x | package/network/ipv6/odhcp6c/files/dhcpv6.script | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script index c81ffee65d..324a823ce9 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.script +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script @@ -69,6 +69,20 @@ setup_interface () { proto_send_update "$INTERFACE" + if [ -n "$AFTR_IP " -a -n "$IFACE_DSLITE" ]; then +uci -q batch <<-EOF >/dev/null +set network.$IFACE_DSLITE.proto=dslite +set network.$IFACE_DSLITE.auto=0 +set network.$IFACE_DSLITE.peeraddr=$AFTR_IP +set network.$IFACE_DSLITE.tunlink=$INTERFACE +commit network +EOF + + ifdown "$IFACE_DSLITE" + /etc/init.d/network reload + ifup "$IFACE_DSLITE" + fi + # TODO: $SNTP_IP $SIP_IP $SNTP_FQDN $SIP_DOMAIN } |