aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/odhcp6c/files
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-10-08 15:16:19 +0000
committerSteven Barth <steven@midlink.org>2014-10-08 15:16:19 +0000
commit363b7bb19bb19519482adc380a290d1291b10b3d (patch)
tree49399837f2e08119644bba0e6be41c7a594283c6 /package/network/ipv6/odhcp6c/files
parent71d458084e8a35554503483a5999647eac111bc7 (diff)
downloadmaster-187ad058-363b7bb19bb19519482adc380a290d1291b10b3d.tar.gz
master-187ad058-363b7bb19bb19519482adc380a290d1291b10b3d.tar.bz2
master-187ad058-363b7bb19bb19519482adc380a290d1291b10b3d.zip
odhcp6c: don't assign addresses or prefixes prematurely
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42850 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/odhcp6c/files')
-rwxr-xr-xpackage/network/ipv6/odhcp6c/files/dhcpv6.script3
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 37e67bfe52..0fedaaa1cd 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"
;;