ppp: interpret "demand" option as timeout in seconds (#7517)

SVN-Revision: 21903
master
Jo-Philipp Wich 15 years ago
parent 2f5a5497be
commit 8079d54678
  1. 2
      package/ppp/Makefile
  2. 6
      package/ppp/files/ppp.sh

@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=ppp PKG_NAME:=ppp
PKG_VERSION:=2.4.4 PKG_VERSION:=2.4.4
PKG_RELEASE:=7 PKG_RELEASE:=8
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/ PKG_SOURCE_URL:=ftp://ftp.samba.org/pub/ppp/

@ -92,11 +92,11 @@ start_pppd() {
} }
local demand local demand
config_get_bool demand "$cfg" demand 0 config_get demand "$cfg" demand 0
local demandargs local demandargs
[ "$demand" -eq 1 ] && { [ "$demand" -gt 0 ] && {
demandargs="precompiled-active-filter /etc/ppp/filter demand idle" demandargs="precompiled-active-filter /etc/ppp/filter demand idle $demand"
[ "$has_dns" -eq 0 ] && add_dns "$cfg" 1.1.1.1 [ "$has_dns" -eq 0 ] && add_dns "$cfg" 1.1.1.1
} || { } || {
demandargs="persist" demandargs="persist"

Loading…
Cancel
Save