From ce6321945f5980105e5980076b738a3f83e48dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=BCsch?= Date: Sun, 8 Aug 2010 18:36:38 +0000 Subject: omap24xx: Add working inittab and watchdog init script git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22534 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/omap24xx/base-files/etc/init.d/watchdog | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 target/linux/omap24xx/base-files/etc/init.d/watchdog (limited to 'target/linux/omap24xx/base-files/etc/init.d') diff --git a/target/linux/omap24xx/base-files/etc/init.d/watchdog b/target/linux/omap24xx/base-files/etc/init.d/watchdog new file mode 100755 index 0000000000..fa5dc4365a --- /dev/null +++ b/target/linux/omap24xx/base-files/etc/init.d/watchdog @@ -0,0 +1,15 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2008-2010 OpenWrt.org + +START=97 +start() { + if ! [ -c /dev/watchdog -a -x /sbin/watchdog ]; then + echo "WARNING: Watchdog not available. System will reboot soon!" + else + /sbin/watchdog -T 63 -t 53 /dev/watchdog + fi +} + +stop() { + killall -q watchdog +} -- cgit v1.2.3