diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-10-08 15:16:19 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2014-10-08 15:16:19 +0000 |
commit | c7a941cf0231384ce769281e9e8f93065675fa08 (patch) | |
tree | 2a324d29477f4eee7e359c8f7ef7df6ce02292bd /package/network/ipv6/odhcp6c/files | |
parent | 8609ca69e0ec06f62e73f1c7115ac9717ea0a96e (diff) | |
download | mtk-20170518-c7a941cf0231384ce769281e9e8f93065675fa08.zip mtk-20170518-c7a941cf0231384ce769281e9e8f93065675fa08.tar.gz mtk-20170518-c7a941cf0231384ce769281e9e8f93065675fa08.tar.bz2 |
odhcp6c: don't assign addresses or prefixes prematurely
SVN-Revision: 42850
Diffstat (limited to 'package/network/ipv6/odhcp6c/files')
-rwxr-xr-x | package/network/ipv6/odhcp6c/files/dhcpv6.script | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script index 37e67bf..0fedaaa 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.script +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script @@ -158,6 +158,9 @@ case "$2" in informed|updated|rebound|ra-updated) setup_interface "$1" ;; + ra-updated) + [ -n "$ADDRESSES$RA_ADDRESSES$PREFIXES$USERPREFIX" ] && setup_interface "$1" + ;; started|stopped|unbound) teardown_interface "$1" ;; |