aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/omap24xx/base-files/etc/init.d/watchdog
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2011-03-06 10:40:04 +0000
committerMichael Büsch <mb@bu3sch.de>2011-03-06 10:40:04 +0000
commit26c83e324897e3dc2483b88b8f3130be50e26099 (patch)
tree0efcc0d537c0b5369b5c6e6a10587e7c85836206 /target/linux/omap24xx/base-files/etc/init.d/watchdog
parent42233dcf8efe42ed7d17ca3143c2cc09c7d79483 (diff)
downloadupstream-26c83e324897e3dc2483b88b8f3130be50e26099.tar.gz
upstream-26c83e324897e3dc2483b88b8f3130be50e26099.tar.bz2
upstream-26c83e324897e3dc2483b88b8f3130be50e26099.zip
omap24xx: Start watchdog with RT priority
SVN-Revision: 25882
Diffstat (limited to 'target/linux/omap24xx/base-files/etc/init.d/watchdog')
-rwxr-xr-xtarget/linux/omap24xx/base-files/etc/init.d/watchdog12
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() {