Browse Source

Start the watchdog daemon if a harware watchdog is present

SVN-Revision: 10721
Florian Fainelli 18 years ago
parent
commit
dd2afbeee3
1 changed files with 7 additions and 0 deletions
  1. 7 0
      package/base-files/files/etc/init.d/watchdog

+ 7 - 0
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
+}