Raspberry Pi Internet Connectivity Checker
A Bash script for an Embedded Linux System, in my case Raspberry Pi 4, that utilizes GPIO to indicate internet connectivity status using an LED.
a Bash script for an Embedded Linux System, in my case Raspberry Pi 4, that utilizes GPIO to indicate internet connectivity status using an LED.
The script brings up a GPIO LED using a device tree overlay, checks internet connectivity by pinging google.com, and then controls the LED based on the connectivity status.
Systemd Service
A systemd service file my-net-check.service is included to automate execution of the led internet connectivity checker script at system start up.
NOTE: The utilized Raspberry pi device tree overlay may be found at raspberry pi linux repo or at /boot/overlays/gpio-led-overlay.dts For other embedded linux devices, you may need to update .dtbo file.