aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp/files
diff options
context:
space:
mode:
authorMatteo Croce <rootkit85@yahoo.it>2014-11-14 16:39:59 +0000
committerMatteo Croce <rootkit85@yahoo.it>2014-11-14 16:39:59 +0000
commit9ee442d0f9e05688f00f764bcb762c0a942e6ef3 (patch)
treef2043e7431737ca3735d21a5ceafb8c33154367c /package/network/services/ppp/files
parent5a05cb40ce04154772ab333bc1587beaad68717d (diff)
downloadupstream-9ee442d0f9e05688f00f764bcb762c0a942e6ef3.tar.gz
upstream-9ee442d0f9e05688f00f764bcb762c0a942e6ef3.tar.bz2
upstream-9ee442d0f9e05688f00f764bcb762c0a942e6ef3.zip
pppd: add option to set custom host-uniq pppoe tag
SVN-Revision: 43241
Diffstat (limited to 'package/network/services/ppp/files')
-rwxr-xr-xpackage/network/services/ppp/files/ppp.sh5
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() {