omap24xx: Add working inittab and watchdog init script
authormb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 8 Aug 2010 18:36:38 +0000 (18:36 +0000)
committermb <mb@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 8 Aug 2010 18:36:38 +0000 (18:36 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22534 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/omap24xx/base-files/etc/init.d/watchdog [new file with mode: 0755]
target/linux/omap24xx/base-files/etc/inittab [new file with mode: 0644]

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 (executable)
index 0000000..fa5dc43
--- /dev/null
@@ -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 (file)
index 0000000..e39d2f1
--- /dev/null
@@ -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