diff options
author | Matteo Croce <matteo@openwrt.org> | 2014-11-14 16:39:59 +0000 |
---|---|---|
committer | Matteo Croce <matteo@openwrt.org> | 2014-11-14 16:39:59 +0000 |
commit | 789aa2bf5cc90760e6988811eda377e002c58194 (patch) | |
tree | fc06f1b78290848601378ab3461d3e7155987a21 /package/network/services/ppp/files/ppp.sh | |
parent | 5748353e219dc9f6b8bacc253bad80758afb6c95 (diff) | |
download | master-187ad058-789aa2bf5cc90760e6988811eda377e002c58194.tar.gz master-187ad058-789aa2bf5cc90760e6988811eda377e002c58194.tar.bz2 master-187ad058-789aa2bf5cc90760e6988811eda377e002c58194.zip |
pppd: add option to set custom host-uniq pppoe tag
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43241 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/ppp/files/ppp.sh')
-rwxr-xr-x | package/network/services/ppp/files/ppp.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh index 28cdb9cbd6..df404dda39 100755 --- a/package/network/services/ppp/files/ppp.sh +++ b/package/network/services/ppp/files/ppp.sh @@ -113,6 +113,7 @@ proto_pppoe_init_config() { ppp_generic_init_config proto_config_add_string "ac" proto_config_add_string "service" + proto_config_add_string host_uniq } proto_pppoe_setup() { @@ -128,12 +129,14 @@ proto_pppoe_setup() { json_get_var ac ac json_get_var service service + json_get_var host_uniq host_uniq ppp_generic_setup "$config" \ plugin rp-pppoe.so \ ${ac:+rp_pppoe_ac "$ac"} \ ${service:+rp_pppoe_service "$service"} \ - "nic-$iface" + "nic-$iface" \ + ${host_uniq:+host-uniq "$host_uniq"} } proto_pppoe_teardown() { |