diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2013-05-21 12:38:54 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2013-05-21 12:38:54 +0200 |
commit | 01254fe7efa7f71013662a73d73e28fe702ba8fb (patch) | |
tree | 86333af94f02ab55b649d8bb446a6bd643f01f33 /src/lib | |
parent | a2f57c5f5ef8d702359a0ed3b8b9e019b70dd482 (diff) | |
download | netctl-01254fe7efa7f71013662a73d73e28fe702ba8fb.tar.gz netctl-01254fe7efa7f71013662a73d73e28fe702ba8fb.tar.xz |
Expose the 'maxfail' option for ppp connections
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/connections/mobile_ppp | 2 | ||||
-rw-r--r-- | src/lib/connections/pppoe | 2 |
2 files changed, 2 insertions, 2 deletions
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}" |