From 639f388fc2499726b8ccb03bb4aa71c8fc4ed536 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 24 Jan 2015 11:30:45 +0000 Subject: 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 SVN-Revision: 44094 --- package/network/services/ppp/files/ppp.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package/network/services/ppp/files/ppp.sh') 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() { -- cgit v1.2.3