summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-08-15 13:27:55 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-08-15 13:27:55 +0000
commit53d8f6f3739f86da2098bc1a73e6f2efc35f2696 (patch)
tree93e4888b05ff9e3b7ccf46780421105ce86e6f3c /package
parent8c9a05c9070ae1ee4d8174fa3c73fb4b5faf5a33 (diff)
package/om-watchdog: start service only on the om2p/om2p-lc boards on ar71xx
If the package is installed, it starts the watchdog daemon on every ar71xx based board. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33194 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/om-watchdog/files/om-watchdog.init10
1 files changed, 5 insertions, 5 deletions
diff --git a/package/om-watchdog/files/om-watchdog.init b/package/om-watchdog/files/om-watchdog.init
index f4d9d4432e..3d2666b214 100644
--- a/package/om-watchdog/files/om-watchdog.init
+++ b/package/om-watchdog/files/om-watchdog.init
@@ -11,12 +11,12 @@ boot() {
if [ -r /lib/ar71xx.sh ]; then
. /lib/ar71xx.sh
local board=$(ar71xx_board_name)
- fi
- if [ "$board" = "om2p" ]; then
- service_start /sbin/om-watchdog 12
- elif [ "$board" = "om2p-lc" ]; then
- service_start /sbin/om-watchdog 26
+ if [ "$board" = "om2p" ]; then
+ service_start /sbin/om-watchdog 12
+ elif [ "$board" = "om2p-lc" ]; then
+ service_start /sbin/om-watchdog 26
+ fi
else
#we assume it is om1p in this case
service_start /sbin/om-watchdog 3