#!/bin/dash
# Last resort when recover-network keeps failing, e.g. if the NIC driver is
# left in a state only a reboot clears. fh-network decides when, and logs
# why; this only makes it a clean reboot so the filesystems are synced.

fh-drop fh-network logger -s -t fh-network -- "rebooting, network recovery kept failing"
sync
exec systemctl reboot
