#!/bin/sh
### BEGIN INIT INFO
# Provides:          wdnowayout
# Required-Start:
# Required-Stop:
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Ensure the watchdog is qactive on shutdown
# Description:
### END INIT INFO

PATH=/sbin:/bin:/usr/sbin:/usr/bin

echo -n "Arming watchdog "
if [ -e /sys/class/watchdog/watchdog0/nowayout ];then
  echo 1 > /sys/class/watchdog/watchdog0/nowayout
  echo 1 > /dev/watchdog
fi;
if [ -e /sys/class/watchdog/watchdog1/nowayout ];then
  echo 1 > /sys/class/watchdog/watchdog1/nowayout
  echo 1 > /dev/watchdog1
fi;
