I have IPfire on a laptop. It takes WIFI hotspot in from phone, and Ethernet cable out to my desktop.
Works nice, but when I leave with my phone and come back, the desktop cannot connect to internet. “Save and refresh” from webgui, or rebooting the laptop do reset the internet.
Where to look, what to change, so the recovery is automatic when my phone hotspot comes back in range of the laptop?
if ! ping -c2 $TARGET >/dev/null 2>&1; then
logger “RED watchdog: no internet, restarting RED”
/etc/init.d/network stop red
sleep 5
/etc/init.d/network start red
fi