#18026: pppoe auto reconnect does not work
--------------------------+-----------------------------------
  Reporter:  anonymous    |      Owner:  developers
      Type:  defect       |     Status:  new
  Priority:  high         |  Milestone:
 Component:  base system  |    Version:  Barrier Breaker 14.07
Resolution:               |   Keywords:
--------------------------+-----------------------------------

Comment (by dermoth):

 @anonymous, I'm sorry I never got any email follow up on your reply.

 Here's the "ifupd" script - that was a temporary solution to troubleshoot
 the issue only; the fix setting `maxfail 0` in `/lib/netifd/proto/ppp.sh`
 - the line I changed now looks like this:

 {{{#!sh
   $demand maxfail 0 holdoff 2 \
 }}}

 `ifupd.sh`:
 {{{#!sh
 #!/bin/sh

 name="$(basename $0)"

 while sleep 1
 do
         pgrep pppd >/dev/null && continue
         # Sleep trice before restarting ifup
         sleep 1
         pgrep pppd >/dev/null && continue
         sleep 1
         pgrep pppd >/dev/null && continue
         echo "$(date): $name[$$]: WARN: pppd down, bringing wan back
 up..."
         ifup wan
 done
 }}}

 On a side note, another related bug: #12245. Closed as wontfix; that one
 was merely about the fact maxfail couldn't be overridden in pppd options,
 no mention of failures like in this bug and #14144.

--
Ticket URL: <https://dev.openwrt.org/ticket/18026#comment:12>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to