Browse Source

Merge pull request #4850 from p-wassi/pppoe-relay

net/rp-pppoe: fix typo in init script
lilik-openwrt-22.03
champtar 7 years ago
committed by GitHub
parent
commit
5c1be8ee05
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      net/rp-pppoe/Makefile
  2. +2
    -2
      net/rp-pppoe/files/pppoe-relay.init
  3. +2
    -2
      net/rp-pppoe/files/pppoe-server.init

+ 1
- 1
net/rp-pppoe/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=rp-pppoe
PKG_VERSION:=3.12
PKG_RELEASE:=1
PKG_RELEASE:=3
PKG_MAINTAINER:=Daniel Dickinson <lede@cshore.thecshore.com>
PKG_LICENSE:=LGPL-2.0+


+ 2
- 2
net/rp-pppoe/files/pppoe-relay.init View File

@ -27,7 +27,7 @@ pppoe_relay_instance() {
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 timeout "$cfg" timeout
config_get_bool use_non_uci_config "$cfg" use_non_uci_config 0
@ -44,7 +44,7 @@ pppoe_relay_instance() {
for interface in $both_interfaces; do
append OPTIONS "-B $interface"
done
[ -n "$maxsesssions" ] && append OPTIONS "-n $maxsesssions"
[ -n "$maxsessions" ] && append OPTIONS "-n $maxsessions"
[ -n "$timeout" ] && append OPTIONS "-i $timeout"
fi


+ 2
- 2
net/rp-pppoe/files/pppoe-server.init View File

@ -16,7 +16,7 @@ pppoe_instance() {
config_get interface "$cfg" interface
config_get ac_name "$cfg" ac_name
config_get service_names "$cfg" service_name
config_get maxsessionsperpeer "$cfg" maxsesssionsperpeer
config_get maxsessionsperpeer "$cfg" maxsessionsperpeer
config_get localip "$cfg" localip
config_get firstremoteip "$cfg" firstremoteip
config_get maxsessions "$cfg" maxsessions
@ -38,7 +38,7 @@ pppoe_instance() {
append OPTIONS "-S $service_name"
done
append OPTIONS "-I $interface"
[ -n "$maxsesssionsperpeer" ] && append OPTIONS "-x $maxsesssionsperpeer"
[ -n "$maxsessionsperpeer" ] && append OPTIONS "-x $maxsessionsperpeer"
[ -n "$localip" ] && append OPTIONS "-L $localip"
[ -n "$firstremoteip" ] && append OPTIONS "-R $firstremoteip"
[ -n "maxsessions" ] && append OPTIONS "-N $maxsessions"


Loading…
Cancel
Save