omap24xx: Add working inittab and watchdog init script

SVN-Revision: 22534
master
Michael Büsch 14 years ago
parent 249dff101c
commit f3c312ac0d
  1. 15
      target/linux/omap24xx/base-files/etc/init.d/watchdog
  2. 5
      target/linux/omap24xx/base-files/etc/inittab

@ -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
}

@ -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
Loading…
Cancel
Save