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> SVN-Revision: 41438
This commit is contained in:
parent
6240cc9e17
commit
bf75e37030
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ ppp_generic_setup() {
|
||||||
else
|
else
|
||||||
demand="persist"
|
demand="persist"
|
||||||
fi
|
fi
|
||||||
|
[ "${keepalive:-0}" -lt 1 ] && keepalive=""
|
||||||
[ -n "$mtu" ] || json_get_var mtu mtu
|
[ -n "$mtu" ] || json_get_var mtu mtu
|
||||||
[ -n "$pppname" ] || pppname="${proto:-ppp}-$config"
|
[ -n "$pppname" ] || pppname="${proto:-ppp}-$config"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue