Author: blogic
Date: 2014-07-01 12:26:07 +0200 (Tue, 01 Jul 2014)
New Revision: 41438

Modified:
   trunk/package/network/services/ppp/files/ppp.sh
Log:
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 <[email protected]>

Modified: trunk/package/network/services/ppp/files/ppp.sh
===================================================================
--- trunk/package/network/services/ppp/files/ppp.sh     2014-07-01 10:26:03 UTC 
(rev 41437)
+++ trunk/package/network/services/ppp/files/ppp.sh     2014-07-01 10:26:07 UTC 
(rev 41438)
@@ -32,7 +32,7 @@
        else
                demand="persist"
        fi
-
+       [ "${keepalive:-0}" -lt 1 ] && keepalive=""
        [ -n "$mtu" ] || json_get_var mtu mtu
        [ -n "$pppname" ] || pppname="${proto:-ppp}-$config"
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to