mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
rp-pppoe: fix pppoe-server init script
There were 2 missing "$" when options "maxsessions" and "optionsfile" are checked for some content. Also the local declaration of "optionsfile" was incorrect. Signed-off-by: Martin Schiller <ms@dev.tdt.de>
This commit is contained in:
committed by
Florian Eckert
parent
34d0684be1
commit
ff2027ffa9
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=rp-pppoe
|
||||
PKG_VERSION:=4.0
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://downloads.uls.co.za/rp-pppoe/
|
||||
|
||||
@@ -16,7 +16,9 @@ pppoe_triggers() {
|
||||
|
||||
pppoe_instance() {
|
||||
local cfg="$1"
|
||||
local enabled interface device ac_name service_names service_name maxsessionsperpeer localip firstremoteip maxsessions optionsfiles randomsession unit offset timeout mss sync OPTIONS
|
||||
local enabled interface device ac_name service_names service_name
|
||||
local maxsessionsperpeer localip firstremoteip maxsessions optionsfile
|
||||
local randomsession unit offset timeout mss sync OPTIONS
|
||||
config_get_bool enabled "$cfg" enabled 1
|
||||
[ "$enabled" -gt 0 ] || return 0
|
||||
config_get interface "$cfg" interface
|
||||
@@ -48,8 +50,8 @@ pppoe_instance() {
|
||||
[ -n "$maxsessionsperpeer" ] && append OPTIONS "-x $maxsessionsperpeer"
|
||||
[ -n "$localip" ] && append OPTIONS "-L $localip"
|
||||
[ -n "$firstremoteip" ] && append OPTIONS "-R $firstremoteip"
|
||||
[ -n "maxsessions" ] && append OPTIONS "-N $maxsessions"
|
||||
[ -n "optionsfile" ] && append OPTIONS "-O $optionsfile"
|
||||
[ -n "$maxsessions" ] && append OPTIONS "-N $maxsessions"
|
||||
[ -n "$optionsfile" ] && append OPTIONS "-O $optionsfile"
|
||||
[ "$randomsession" = "1" ] && append OPTIONS "-r"
|
||||
[ "$unit" = "1" ] && append OPTIONS "-u"
|
||||
[ -n "$offset" ] && append OPTIONS "-o $offset"
|
||||
|
||||
Reference in New Issue
Block a user