aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-07-01 10:26:07 +0000
committerJohn Crispin <blogic@openwrt.org>2014-07-01 10:26:07 +0000
commitef9c64566e4c961334af51afac8896db1007745b (patch)
tree401cfd6cafd1ff0add219880c35cf587797da641
parent2bf511e66240e3b4df7ff3805c0514968f389110 (diff)
downloadmaster-187ad058-ef9c64566e4c961334af51afac8896db1007745b.tar.gz
master-187ad058-ef9c64566e4c961334af51afac8896db1007745b.tar.bz2
master-187ad058-ef9c64566e4c961334af51afac8896db1007745b.zip
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
-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 4447d061a7..8f4cdebcef 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"