From 09c0e0ce708f8493f8ff2db4a0dc832a52cb4ced Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 3 Apr 2008 14:36:10 +0000 Subject: [PATCH] Start the watchdog daemon if a harware watchdog is present git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10721 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/init.d/watchdog | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 package/base-files/files/etc/init.d/watchdog diff --git a/package/base-files/files/etc/init.d/watchdog b/package/base-files/files/etc/init.d/watchdog new file mode 100755 index 0000000000..0821c8f475 --- /dev/null +++ b/package/base-files/files/etc/init.d/watchdog @@ -0,0 +1,7 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2008 OpenWrt.org + +START=97 +start() { + [ -f /dev/watchtog ] && watchdog -t 5 /dev/watchdog +}