aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-06-26 18:11:04 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-06-26 18:11:04 +0000
commit5b9e5a8e9ade7651bc4e4a99c1087f06ce2d1efd (patch)
treef66061a8028dbb76df8040e0b722a5c9be1024da /package/ppp/files
parent3d85c7499e068cbaaf1471f6ea6a969ec2a8d1d0 (diff)
downloadmaster-187ad058-5b9e5a8e9ade7651bc4e4a99c1087f06ce2d1efd.tar.gz
master-187ad058-5b9e5a8e9ade7651bc4e4a99c1087f06ce2d1efd.tar.bz2
master-187ad058-5b9e5a8e9ade7651bc4e4a99c1087f06ce2d1efd.zip
[package] ppp: interpret "demand" option as timeout in seconds (#7517)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21903 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp/files')
-rw-r--r--package/ppp/files/ppp.sh6
1 files changed, 3 insertions, 3 deletions
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"