From 8079d54678fea04bbe1689b534fd75fd46a72831 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 26 Jun 2010 18:11:04 +0000 Subject: ppp: interpret "demand" option as timeout in seconds (#7517) SVN-Revision: 21903 --- package/ppp/files/ppp.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package/ppp/files') diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh index 53cfb1be1a..46a66c969c 100644 --- a/package/ppp/files/ppp.sh +++ b/package/ppp/files/ppp.sh @@ -92,11 +92,11 @@ start_pppd() { } local demand - config_get_bool demand "$cfg" demand 0 + config_get demand "$cfg" demand 0 local demandargs - [ "$demand" -eq 1 ] && { - demandargs="precompiled-active-filter /etc/ppp/filter demand idle" + [ "$demand" -gt 0 ] && { + demandargs="precompiled-active-filter /etc/ppp/filter demand idle $demand" [ "$has_dns" -eq 0 ] && add_dns "$cfg" 1.1.1.1 } || { demandargs="persist" -- cgit v1.2.3