From 01254fe7efa7f71013662a73d73e28fe702ba8fb Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Tue, 21 May 2013 12:38:54 +0200 Subject: Expose the 'maxfail' option for ppp connections --- src/lib/connections/mobile_ppp | 2 +- src/lib/connections/pppoe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/connections/mobile_ppp b/src/lib/connections/mobile_ppp index 2466ad7..b966390 100644 --- a/src/lib/connections/mobile_ppp +++ b/src/lib/connections/mobile_ppp @@ -30,7 +30,7 @@ modem passive novj holdoff 10 -maxfail 5 +maxfail ${MaxFail:-5} EOF # Debug pppd output separately from netctl diff --git a/src/lib/connections/pppoe b/src/lib/connections/pppoe index 87f9ee5..65fee79 100644 --- a/src/lib/connections/pppoe +++ b/src/lib/connections/pppoe @@ -36,7 +36,7 @@ pppoe_up() { if is_yes "${UsePeerDNS:-yes}"; then echo "usepeerdns" >> "${cfg}" fi - echo "maxfail 5" >> "${cfg}" + echo "maxfail ${MaxFail:-5}" >> "${cfg}" echo "updetach" >> "${cfg}" if [[ ${ConnectionMode} == demand ]]; then echo "demand" >> "${cfg}" -- cgit v1.2.3-24-g4f1b