package/om-watchdog: add OpenMesh MR900v2 support
[openwrt/openwrt.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"|"om2p-hsv2")
17 service_start /sbin/om-watchdog 12
18 ;;
19 "om2pv2"|"om2p-lc")
20 service_start /sbin/om-watchdog 26
21 ;;
22 "om5p")
23 service_start /sbin/om-watchdog 11
24 ;;
25 "mr600v2")
26 service_start /sbin/om-watchdog 15
27 ;;
28 "mr900"|"mr900v2")
29 service_start /sbin/om-watchdog 16
30 ;;
31 esac
32 else
33 #we assume it is om1p in this case
34 service_start /sbin/om-watchdog 3
35 fi
36 }