projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2bf511e
)
ppp: fix keep alive option
author
John Crispin
<blogic@openwrt.org>
Tue, 1 Jul 2014 10:26:07 +0000
(10:26 +0000)
committer
John Crispin
<blogic@openwrt.org>
Tue, 1 Jul 2014 10:26:07 +0000
(10:26 +0000)
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
package/network/services/ppp/files/ppp.sh
patch
|
blob
|
history
diff --git
a/package/network/services/ppp/files/ppp.sh
b/package/network/services/ppp/files/ppp.sh
index
4447d06
..
8f4cdeb
100755
(executable)
--- 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
else
demand="persist"
fi
-
+ [ "${keepalive:-0}" -lt 1 ] && keepalive=""
[ -n "$mtu" ] || json_get_var mtu mtu
[ -n "$pppname" ] || pppname="${proto:-ppp}-$config"
[ -n "$mtu" ] || json_get_var mtu mtu
[ -n "$pppname" ] || pppname="${proto:-ppp}-$config"