From b6dc3c761c75a0411a607544a1b76955dbe9a1a7 Mon Sep 17 00:00:00 2001 From: Federico Simoncelli Date: Jun 14 2012 15:45:15 +0000 Subject: wdmd: load the softdog module when needed Signed-off-by: Federico Simoncelli --- diff --git a/init.d/wdmd b/init.d/wdmd index 9ec7b8c..19fc3ae 100644 --- a/init.d/wdmd +++ b/init.d/wdmd @@ -39,6 +39,13 @@ start() { [ -x /sbin/restorecon ] && restorecon /var/run/$prog fi + if [ ! -c /dev/watchdog ]; then + echo -n $"Loading the softdog kernel module: " + modprobe softdog && udevadm settle + [ -c /dev/watchdog ] && success || failure + echo + fi + echo -n $"Starting $prog: " daemon $prog $WDMDOPTS retval=$?