aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/ppp/files
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
commit639f388fc2499726b8ccb03bb4aa71c8fc4ed536 (patch)
tree5159ee63c4ee01c91e44b576c2de735b8074658a /package/network/services/ppp/files
parentc71cf8e6e4bbc2b39a061eff8d89f24dc078b1f2 (diff)
downloadupstream-639f388fc2499726b8ccb03bb4aa71c8fc4ed536.tar.gz
upstream-639f388fc2499726b8ccb03bb4aa71c8fc4ed536.tar.bz2
upstream-639f388fc2499726b8ccb03bb4aa71c8fc4ed536.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> SVN-Revision: 44094
Diffstat (limited to 'package/network/services/ppp/files')
-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() {