"wdctl -s" does not yet exist upstream. I patched
util-linux/sys-utils/wdctl.c to set the timeout.
inst_hook cleanup 00 "$moddir/watchdog.sh"
inst_hook cleanup 99 "$moddir/watchdog.sh"
inst_hook emergency 02 "$moddir/watchdog-stop.sh"
+ dracut_install -o wdctl
}
#!/bin/sh
if [ -e /dev/watchdog ]; then
+ if [ ! -e /tmp/watchdog_timeout ]; then
+ wdctl -s 60 /dev/watchdog &>/dev/null
+ > /tmp/watchdog_timeout
+ fi
info "Triggering watchdog"
>/dev/watchdog
else
modprobe ib700wdt
+ modprobe i6300esb
fi