mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
ppp: fix keep alive option
currently the keepalive option needs to be removed to fully disable it. this patch allows us to set it to 0. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41438 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -32,7 +32,7 @@ ppp_generic_setup() {
|
||||
else
|
||||
demand="persist"
|
||||
fi
|
||||
|
||||
[ "${keepalive:-0}" -lt 1 ] && keepalive=""
|
||||
[ -n "$mtu" ] || json_get_var mtu mtu
|
||||
[ -n "$pppname" ] || pppname="${proto:-ppp}-$config"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user