Root/package/om-watchdog/files/om-watchdog.init

1#!/bin/sh /etc/rc.common
2#
3# Copyright (C) 2011 OpenWrt.org
4#
5
6START=11
7
8SERVICE_DAEMONIZE=1
9
10boot() {
11    if [ -r /lib/ar71xx.sh ]; then
12        . /lib/ar71xx.sh
13        local board=$(ar71xx_board_name)
14    fi
15
16    if [ "$board" = "om2p" ]; then
17        service_start /sbin/om-watchdog 12
18    else
19        #we assume it is om1p in this case
20        service_start /sbin/om-watchdog 3
21    fi
22}
23

Archive Download this file



interactive