@ -12,11 +12,12 @@ pppoe_triggers() {
pppoe_instance() {
pppoe_instance() {
local cfg="$1"
local cfg="$1"
local interface ac_name service_names service_name maxsessionsperpeer localip firstremoteip maxsessions optionsfiles randomsession unit offset timeout mss sync OPTIONS
local interface ac_name service_names service_name maxsessionsperpeer maxsesssionsperpeer localip firstremoteip maxsessions optionsfiles randomsession unit offset timeout mss sync OPTIONS
config_get interface "$cfg" interface
config_get interface "$cfg" interface
config_get ac_name "$cfg" ac_name
config_get ac_name "$cfg" ac_name
config_get service_names "$cfg" service_name
config_get service_names "$cfg" service_name
config_get maxsessionsperpeer "$cfg" maxsesssionsperpeer
config_get maxsessionsperpeer "$cfg" maxsessionsperpeer
config_get maxsesssionsperpeer "$cfg" maxsesssionsperpeer
config_get localip "$cfg" localip
config_get localip "$cfg" localip
config_get firstremoteip "$cfg" firstremoteip
config_get firstremoteip "$cfg" firstremoteip
config_get maxsessions "$cfg" maxsessions
config_get maxsessions "$cfg" maxsessions
@ -38,6 +39,7 @@ pppoe_instance() {
append OPTIONS "-S $service_name"
append OPTIONS "-S $service_name"
done
done
append OPTIONS "-I $interface"
append OPTIONS "-I $interface"
[ -n "$maxsessionsperpeer" ] && append OPTIONS "-x $maxsessionsperpeer"
[ -n "$maxsesssionsperpeer" ] && append OPTIONS "-x $maxsesssionsperpeer"
[ -n "$maxsesssionsperpeer" ] && append OPTIONS "-x $maxsesssionsperpeer"
[ -n "$localip" ] && append OPTIONS "-L $localip"
[ -n "$localip" ] && append OPTIONS "-L $localip"
[ -n "$firstremoteip" ] && append OPTIONS "-R $firstremoteip"
[ -n "$firstremoteip" ] && append OPTIONS "-R $firstremoteip"