Remove static routes that are added for dns servers when allow override is allowed when a ppp interface goes down. Code borrowed from dhclient-script.
Ticket #876. Actually the event to send is interface newip $ip rather interface configure! also use the fact that now we have a /tmp/$if_defaultgw rather than relying in route get default which might block.
Reload dns and interface properly on dynamic types.
Ticket #876. Add the ip to the respective files on ppp linkup event so the code of dynamic gateways finds them. Also reorganize/simplify/optimize the apinger config generation code. Do not use that 127.0.0.x hack anymore and avoid loops as much as possible.
Use the new events mechanisms to dispatch events.
Pass the new argumesnts to pfctl -b and correct variable name as reported on Ticket #8.
On ppp type interfaces down event signal for resolv.conf to be generated to have the latest dns servers. Ticket #838.
Ticket #8. Delete states after link fails down.
Revert changes as requested by Ermal
Implement reporting and logging of historical PPP uptime with data persistent through reboot.
Also, change the way uptime is captured. The mpd console is no longer used toget PPP uptime data, which will prevent spamming of PPP logs with console access messages....
Tell that the interface is down.
Resolve problems with dns server setup when allow override is set. Also add static routes for all nameservers to be friendly with multiwan.
Add other needed files so everything works as expected.