Date:2010-08-08 20:36:38 (13 years 7 months ago)
Author:mb
Commit:20b373a23bfbdde2ff0ac57653ddf3e8da0f3b3b
Message:omap24xx: Add working inittab and watchdog init script

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22534 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: target/linux/omap24xx/base-files/etc/init.d/watchdog (1 diff)
target/linux/omap24xx/base-files/etc/inittab (1 diff)

Change Details

target/linux/omap24xx/base-files/etc/init.d/watchdog
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2008-2010 OpenWrt.org
3
4START=97
5start() {
6    if ! [ -c /dev/watchdog -a -x /sbin/watchdog ]; then
7        echo "WARNING: Watchdog not available. System will reboot soon!"
8    else
9        /sbin/watchdog -T 63 -t 53 /dev/watchdog
10    fi
11}
12
13stop() {
14    killall -q watchdog
15}
target/linux/omap24xx/base-files/etc/inittab
1::sysinit:/etc/init.d/rcS S boot
2::shutdown:/etc/init.d/rcS K stop
3tts/0::askfirst:/bin/ash --login
4ttyS2::askfirst:/bin/ash --login
5tty1::askfirst:/bin/ash --login

Archive Download the corresponding diff file



interactive