From: Florian Fainelli Date: Thu, 3 Apr 2008 14:36:10 +0000 (+0000) Subject: Start the watchdog daemon if a harware watchdog is present X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=053eeefab0dc4674c07442a6d60e34483c6c01d4 Start the watchdog daemon if a harware watchdog is present SVN-Revision: 10721 --- 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 +}