2012-01-04 17:30:39 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
#
|
|
|
|
# Copyright (C) 2011 OpenWrt.org
|
|
|
|
#
|
|
|
|
|
|
|
|
START=11
|
|
|
|
|
|
|
|
SERVICE_DAEMONIZE=1
|
|
|
|
|
|
|
|
boot() {
|
|
|
|
if [ -r /lib/ar71xx.sh ]; then
|
|
|
|
. /lib/ar71xx.sh
|
|
|
|
local board=$(ar71xx_board_name)
|
|
|
|
|
2012-10-17 08:26:03 +00:00
|
|
|
case "$board" in
|
2014-06-02 13:21:43 +00:00
|
|
|
"om2p"|"om2p-hs"|"om2p-hsv2")
|
2012-10-17 08:26:03 +00:00
|
|
|
service_start /sbin/om-watchdog 12
|
|
|
|
;;
|
2014-06-02 13:21:11 +00:00
|
|
|
"om2pv2"|"om2p-lc")
|
2012-10-17 08:26:03 +00:00
|
|
|
service_start /sbin/om-watchdog 26
|
|
|
|
;;
|
2014-07-20 17:30:56 +00:00
|
|
|
"om5p")
|
|
|
|
service_start /sbin/om-watchdog 11
|
|
|
|
;;
|
2013-02-01 15:50:49 +00:00
|
|
|
"mr600v2")
|
|
|
|
service_start /sbin/om-watchdog 15
|
|
|
|
;;
|
2014-11-14 16:54:38 +00:00
|
|
|
"mr900")
|
|
|
|
service_start /sbin/om-watchdog 16
|
|
|
|
;;
|
2012-10-17 08:26:03 +00:00
|
|
|
esac
|
2012-01-04 17:30:39 +00:00
|
|
|
else
|
|
|
|
#we assume it is om1p in this case
|
|
|
|
service_start /sbin/om-watchdog 3
|
|
|
|
fi
|
|
|
|
}
|