summaryrefslogtreecommitdiff
path: root/package/network/services/ppp/files/ppp.sh
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-07-01 10:26:07 +0000
committerJohn Crispin <john@openwrt.org>2014-07-01 10:26:07 +0000
commitbf75e37030746e777116781dd4236a7f6d29aabd (patch)
tree9170a683d3e9b08d742e94e964b9e42ac34f4b88 /package/network/services/ppp/files/ppp.sh
parent6240cc9e1733aa9ba9873c13bd8b107c574e52f3 (diff)
downloadmtk-20170518-bf75e37030746e777116781dd4236a7f6d29aabd.zip
mtk-20170518-bf75e37030746e777116781dd4236a7f6d29aabd.tar.gz
mtk-20170518-bf75e37030746e777116781dd4236a7f6d29aabd.tar.bz2
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
Diffstat (limited to 'package/network/services/ppp/files/ppp.sh')
-rwxr-xr-xpackage/network/services/ppp/files/ppp.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/services/ppp/files/ppp.sh b/package/network/services/ppp/files/ppp.sh
index 4447d06..8f4cdeb 100755
--- a/package/network/services/ppp/files/ppp.sh
+++ b/package/network/services/ppp/files/ppp.sh
@@ -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"