aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/odhcp6c/files/dhcpv6.script
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-02-14 14:58:07 +0100
committerHans Dedecker <dedeckeh@gmail.com>2018-02-24 21:03:31 +0100
commit66222dd92b3bdb0f035a4ab0370796cfdcdf8593 (patch)
tree5648dddd857867d96021d538febbafed94d9b836 /package/network/ipv6/odhcp6c/files/dhcpv6.script
parent0f54d96d241dd3fb528ca14d9c0e6b799001feb6 (diff)
downloadupstream-66222dd92b3bdb0f035a4ab0370796cfdcdf8593.tar.gz
upstream-66222dd92b3bdb0f035a4ab0370796cfdcdf8593.tar.bz2
upstream-66222dd92b3bdb0f035a4ab0370796cfdcdf8593.zip
odhcp6c: support multiple additional user prefixes
Support configuration in the form... list ip6prefix 2001:db8:1234::/64 list ip6prefix 2001:db8:5678::/64 ... to allow specifying multiple additional IPv6 prefixes. Implements feature request FS#1361. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'package/network/ipv6/odhcp6c/files/dhcpv6.script')
-rwxr-xr-xpackage/network/ipv6/odhcp6c/files/dhcpv6.script4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script
index 03efaf7211..3171013966 100755
--- a/package/network/ipv6/odhcp6c/files/dhcpv6.script
+++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script
@@ -48,7 +48,9 @@ setup_interface () {
fi
done
- [ -n "$USERPREFIX" ] && proto_add_ipv6_prefix "$USERPREFIX"
+ for prefix in $USERPREFIX; do
+ proto_add_ipv6_prefix "$prefix"
+ done
# Merge addresses
for entry in $RA_ADDRESSES; do