diff options
author | Michael Büsch <mb@bu3sch.de> | 2011-03-06 10:40:04 +0000 |
---|---|---|
committer | Michael Büsch <mb@bu3sch.de> | 2011-03-06 10:40:04 +0000 |
commit | a91b3a7fc045d4cbb4d115ae0d1c55a1ca74ce60 (patch) | |
tree | 59df16784f415118235d0e5a624b869431b80352 /target/linux/omap24xx/base-files/etc | |
parent | 6c73661162f7b47effdb493725071557ed175a9a (diff) | |
download | upstream-a91b3a7fc045d4cbb4d115ae0d1c55a1ca74ce60.tar.gz upstream-a91b3a7fc045d4cbb4d115ae0d1c55a1ca74ce60.tar.bz2 upstream-a91b3a7fc045d4cbb4d115ae0d1c55a1ca74ce60.zip |
omap24xx: Start watchdog with RT priority
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25882 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/omap24xx/base-files/etc')
-rwxr-xr-x | target/linux/omap24xx/base-files/etc/init.d/watchdog | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/target/linux/omap24xx/base-files/etc/init.d/watchdog b/target/linux/omap24xx/base-files/etc/init.d/watchdog index fa5dc4365a..d1ad1a1752 100755 --- a/target/linux/omap24xx/base-files/etc/init.d/watchdog +++ b/target/linux/omap24xx/base-files/etc/init.d/watchdog @@ -1,13 +1,15 @@ #!/bin/sh /etc/rc.common # Copyright (C) 2008-2010 OpenWrt.org -START=97 +START=25 + start() { - if ! [ -c /dev/watchdog -a -x /sbin/watchdog ]; then + [ -c /dev/watchdog -a -x /sbin/watchdog ] || { echo "WARNING: Watchdog not available. System will reboot soon!" - else - /sbin/watchdog -T 63 -t 53 /dev/watchdog - fi + return 1 + } + /sbin/watchdog -T 60 -t 50 /dev/watchdog + [ -x /usr/bin/schedtool ] && /usr/bin/schedtool -R -p 60 -n -20 $(pidof watchdog) } stop() { |