# An interface came up (hotplug-call sources this): after a firmware upgrade the settings are here and the program is not, so start
# the reinstall step (PRD FWU-2, WP A-6). On a router that works this is one test and out. It never waits: netifd must not.
# Remove it with the step: rm -r /etc/forestvpn-reinstall /etc/hotplug.d/iface/90-forestvpn-reinstall
if [ "$ACTION" = ifup ] && [ ! -x "${FVPN_REINSTALL_FV:-/usr/sbin/fv}" ] && [ -s "${FVPN_REINSTALL_ETC:-/etc}/config/forestvpn" ]; then
	"${FVPN_REINSTALL_HEAL:-/etc/forestvpn-reinstall/heal}" </dev/null >/dev/null 2>&1 &
fi
