aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp/files/ppp.sh
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-01-24 11:30:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-01-24 11:30:45 +0000
commit730e24cfaa057e56d8fbfac25682fdf3c4c515b7 (patch)
treec2c27ca613479f7b61c7f7e339f07b7841367768 /package/network/services/ppp/files/ppp.sh
parent2ea6261f8c3330d375513686727ccfa30dae8ad3 (diff)
downloadmaster-187ad058-730e24cfaa057e56d8fbfac25682fdf3c4c515b7.tar.gz
master-187ad058-730e24cfaa057e56d8fbfac25682fdf3c4c515b7.tar.bz2
master-187ad058-730e24cfaa057e56d8fbfac25682fdf3c4c515b7.zip
ppp: rework host-uniq support to take hex encoded strings
The previous implementation of the "host-uniq" option used plain strings for passing the value to pppd which made it impossible to specify binary data. Switch the format to a hex encoded string to support binary data. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44094 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/ppp/files/ppp.sh')
-rwxr-xr-xpackage/network/services/ppp/files/ppp.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh
index df404dda39..ba3b412316 100755
--- a/package/network/services/ppp/files/ppp.sh
+++ b/package/network/services/ppp/files/ppp.sh
@@ -113,7 +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_config_add_string "host_uniq"
}
proto_pppoe_setup() {
@@ -135,8 +135,8 @@ proto_pppoe_setup() {
plugin rp-pppoe.so \
${ac:+rp_pppoe_ac "$ac"} \
${service:+rp_pppoe_service "$service"} \
- "nic-$iface" \
- ${host_uniq:+host-uniq "$host_uniq"}
+ ${host_uniq:+host-uniq "$host_uniq"} \
+ "nic-$iface"
}
proto_pppoe_teardown() {