mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[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
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user