From: Michael Büsch Date: Sun, 8 Aug 2010 18:36:38 +0000 (+0000) Subject: omap24xx: Add working inittab and watchdog init script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f3c312ac0db8a204b2d207ddf1024fd4a8e0d91b;p=openwrt%2Fstaging%2Fluka.git omap24xx: Add working inittab and watchdog init script SVN-Revision: 22534 --- 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 +} diff --git a/target/linux/omap24xx/base-files/etc/inittab b/target/linux/omap24xx/base-files/etc/inittab new file mode 100644 index 0000000000..e39d2f158f --- /dev/null +++ b/target/linux/omap24xx/base-files/etc/inittab @@ -0,0 +1,5 @@ +::sysinit:/etc/init.d/rcS S boot +::shutdown:/etc/init.d/rcS K stop +tts/0::askfirst:/bin/ash --login +ttyS2::askfirst:/bin/ash --login +tty1::askfirst:/bin/ash --login