diff options
author | cyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-06-11 20:52:27 +0000 |
---|---|---|
committer | cyrus <cyrus@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-06-11 20:52:27 +0000 |
commit | 554779eefe6d7082169ff27031b9b7823b0b147a (patch) | |
tree | b274f02e9e26c1451d372f0cb834dd3d50b78bc4 /package/network/ipv6/6relayd/files | |
parent | 76a6589f777d9d0351d5bf37d1490cf4df1b0c83 (diff) |
6relayd: make route preference and prefix on-link flag configurable
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36922 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/ipv6/6relayd/files')
-rw-r--r-- | package/network/ipv6/6relayd/files/6relayd.init | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/network/ipv6/6relayd/files/6relayd.init b/package/network/ipv6/6relayd/files/6relayd.init index b26d6c5e3d..89b8610b49 100644 --- a/package/network/ipv6/6relayd/files/6relayd.init +++ b/package/network/ipv6/6relayd/files/6relayd.init @@ -95,6 +95,14 @@ start_6relayd() { config_get management_level "$cfg" management_level [ -n "$management_level" ] && append args "-m$management_level" + local management_offlink + config_get_bool management_offlink "$cfg" management_offlink 0 + [ "$management_offlink" -eq 1 ] && append args "-o" + + local management_preference + config_get management_preference "$cfg" management_preference + [ -n "$management_preference" ] && append args "-i$management_preference" + config_foreach add_static_lease lease [ "$ndp" = "relay" ] && append args "-N -s" |