net/rp-pppoe: fix typo in init script

Due to a typo in the init scripts, certain parameters are not appended
to the cmdline. (max. # of concurrent sessions).
For backwards compatibility leave both spellings in place.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
This commit is contained in:
Paul Wassi
2017-09-18 18:23:30 +02:00
parent 39fa464ffe
commit a5c43479ce
3 changed files with 9 additions and 5 deletions
+4 -2
View File
@@ -23,11 +23,12 @@ pppoe_triggers() {
pppoe_relay_instance() {
local cfg="$1"
local interface server_interfaces client_interfaces both_interfaces maxsessions timeout OPTIONS
local interface server_interfaces client_interfaces both_interfaces maxsessions maxsesssions timeout OPTIONS
config_get server_interfaces "$cfg" server_interface
config_get client_interfaces "$cfg" client_interface
config_get both_interfaces "$cfg" both_interfaces
config_get maxsessions "$cfg" maxsesssions
config_get maxsessions "$cfg" maxsessions
config_get maxsesssions "$cfg" maxsesssions
config_get timeout "$cfg" timeout
config_get_bool use_non_uci_config "$cfg" use_non_uci_config 0
@@ -44,6 +45,7 @@ pppoe_relay_instance() {
for interface in $both_interfaces; do
append OPTIONS "-B $interface"
done
[ -n "$maxsessions" ] && append OPTIONS "-n $maxsessions"
[ -n "$maxsesssions" ] && append OPTIONS "-n $maxsesssions"
[ -n "$timeout" ] && append OPTIONS "-i $timeout"
fi