mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-03-06 07:58:20 +02:00
omap24xx: Add working inittab and watchdog init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22534 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
02e66a9ff8
commit
20b373a23b
15
target/linux/omap24xx/base-files/etc/init.d/watchdog
Executable file
15
target/linux/omap24xx/base-files/etc/init.d/watchdog
Executable file
@ -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
|
||||||
|
}
|
5
target/linux/omap24xx/base-files/etc/inittab
Normal file
5
target/linux/omap24xx/base-files/etc/inittab
Normal file
@ -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…
x
Reference in New Issue
Block a user