diff options
Diffstat (limited to 'package/ppp/files')
-rwxr-xr-x | package/ppp/files/ppp.pre-up | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/package/ppp/files/ppp.pre-up b/package/ppp/files/ppp.pre-up index 7f28f32da..6c0b59c7f 100755 --- a/package/ppp/files/ppp.pre-up +++ b/package/ppp/files/ppp.pre-up @@ -11,11 +11,14 @@ } IDLEOPTIONS="persist\nmaxfail 0" -if [ "$IF_PPP_IDLETIME" -gt 0 ]; then +[ "$IF_PPP_IDLETIME" ] && { + if [ "$IF_PPP_IDLETIME" -gt 0 ]; then IDLEOTPIONS="idletime $IF_PPP_IDLETIME" -fi + fi +} -if [ "$IF_PPP_MTU" -gt 0 ] ; then +[ "$IF_PPP_MTU" ] || IF_PPP_MTU=1412 +if [ "$IF_PPP_MTU" -gt 0 ] ; then NETWORKOPTIONS="mtu $IF_PPP_MTU\nmru $IF_PPP_MTU" fi |