[package] add stop() to watchdog init script, patch from Yury Polyanskiy
[openwrt/svn-archive/archive.git] / package / base-files / files / etc / init.d / watchdog
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2008-2010 OpenWrt.org
3
4 START=97
5 start() {
6 [ -c /dev/watchdog ] && [ -x /sbin/watchdog ] && \
7 watchdog -t 5 /dev/watchdog
8 }
9
10 stop() {
11 killall -q watchdog
12 [ -c /dev/watchdog ] && echo "V" > /dev/watchdog
13 }