packages: clean up the package folder
[openwrt/staging/yousong.git] / package / kernel / om-watchdog / files / om-watchdog.init
1 #!/bin/sh /etc/rc.common
2 #
3 # Copyright (C) 2011 OpenWrt.org
4 #
5
6 START=11
7
8 SERVICE_DAEMONIZE=1
9
10 boot() {
11 if [ -r /lib/ar71xx.sh ]; then
12 . /lib/ar71xx.sh
13 local board=$(ar71xx_board_name)
14
15 case "$board" in
16 "om2p"|"om2p-hs")
17 service_start /sbin/om-watchdog 12
18 ;;
19 "om2p-lc")
20 service_start /sbin/om-watchdog 26
21 ;;
22 "mr600v2")
23 service_start /sbin/om-watchdog 15
24 ;;
25 esac
26 else
27 #we assume it is om1p in this case
28 service_start /sbin/om-watchdog 3
29 fi
30 }