From bbb67f1a625bc50b5f64a84b3855a6240b6ede4f Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 1 Jul 2014 10:26:07 +0000 Subject: [PATCH] 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 SVN-Revision: 41438 --- package/network/services/ppp/files/ppp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.30.2