andrew-aladev / modem-reboot

modem reboot for d-link 2500U

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problems:
1) Byfly is a belorussian provider. It likes to reboot its core routes twice a week.
2) D-Link 2500U has no option to automatic reboot while interfaces became unreachable. There is no event available to cutomize it.
3) After rebooting D-Link 2500U will not ask your connected devices by ARP. It will use cached data from the previous session. Thats why bug "ARP status Incomplete" will take place after about 20 minutes 
after reboot.

Solution (may be not very good but works):
1) Ask each hour modem is google.com available.
2) If google.com is not available reboot modem.
3) Wait about 5 minutes (with guarantee).
4) restart network-manager service.

Add to your crontab (with root rights)
sudo crontab -e
0 * * * * /path_to/check >> /path_to/modem.log 2>&1

About

modem reboot for d-link 2500U


Languages

Language:Perl 55.2%Language:Shell 44.8%