aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6/odhcp6c/files
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2013-06-18 12:51:14 +0000
committerSteven Barth <cyrus@openwrt.org>2013-06-18 12:51:14 +0000
commit5219d38da29f879a86459a96ae3f5b2e1e33a95f (patch)
tree6389f4225c77355c48236eb8bcad252fcb6090fe /package/network/ipv6/odhcp6c/files
parent28535aad381d47a5e1fd384969eae4517e00a12c (diff)
downloadupstream-5219d38da29f879a86459a96ae3f5b2e1e33a95f.tar.gz
upstream-5219d38da29f879a86459a96ae3f5b2e1e33a95f.tar.bz2
upstream-5219d38da29f879a86459a96ae3f5b2e1e33a95f.zip
odhcp6c: Add option to override interface identifier in RA-client
SVN-Revision: 36959
Diffstat (limited to 'package/network/ipv6/odhcp6c/files')
-rwxr-xr-xpackage/network/ipv6/odhcp6c/files/dhcpv6.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.sh b/package/network/ipv6/odhcp6c/files/dhcpv6.sh
index b2264ed907..c5e77c65b4 100755
--- a/package/network/ipv6/odhcp6c/files/dhcpv6.sh
+++ b/package/network/ipv6/odhcp6c/files/dhcpv6.sh
@@ -18,8 +18,8 @@ proto_dhcpv6_setup() {
local config="$1"
local iface="$2"
- local reqaddress reqprefix clientid reqopts noslaaconly norelease ip6prefix iface_dslite
- json_get_vars reqaddress reqprefix clientid reqopts noslaaconly norelease ip6prefix iface_dslite
+ local reqaddress reqprefix clientid reqopts noslaaconly norelease ip6prefix iface_dslite ifaceid
+ json_get_vars reqaddress reqprefix clientid reqopts noslaaconly norelease ip6prefix iface_dslite ifaceid
# Configure
@@ -35,6 +35,8 @@ proto_dhcpv6_setup() {
[ "$norelease" = "1" ] && append opts "-k"
+ [ -n "$ifaceid" ] && append opts "-i$ifaceid"
+
for opt in $reqopts; do
append opts "-r$opt"
done