Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a script to check for and re-establish network connectivity. #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ezio-melotti
Copy link
Collaborator

This script checks for network connectivity by pinging Google every few minutes.
If the ping is not successful, the script will try to:

  1. restart the network interface, and check again
  2. if it's still not working, it will just reboot the pi

It can be installed by copying network-monitor.service to /etc/systemd/system/ and launched with sudo systemctl start network-monitor.

This script was created to prevent the RPi4 from going offline, which is something that we observed a few times, but we still haven't figured out why it happens and how to fix it properly. The PR doesn't need to be merged if we figure out and fix the root cause.

This script was developed by @fcarbogn.

Co-authored-by: Franco Carbognani <fcarbogn@gmail.com>
@ezio-melotti ezio-melotti added the enhancement New feature or request label Oct 24, 2024
@ezio-melotti ezio-melotti self-assigned this Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant