Root/target/linux/omap24xx/base-files/etc/init.d/watchdog

1#!/bin/sh /etc/rc.common
2# Copyright (C) 2008-2010 OpenWrt.org
3
4START=25
5
6start() {
7    [ -c /dev/watchdog -a -x /sbin/watchdog ] || {
8        echo "WARNING: Watchdog not available. System will reboot soon!"
9        return 1
10    }
11    /sbin/watchdog -T 63 -t 50 /dev/watchdog
12    [ -x /usr/bin/schedtool ] && /usr/bin/schedtool -R -p 60 -n -20 $(pidof watchdog)
13}
14
15stop() {
16    killall -q watchdog
17}
18

Archive Download this file



interactive