Browse Source

package/om-watchdog: add OM2P-HS support

Signed-off-by: Marek Lindner <[email protected]>
Signed-off-by: Gabor Juhos <[email protected]>

SVN-Revision: 33801
Gabor Juhos 13 years ago
parent
commit
15949b84a1
1 changed files with 8 additions and 5 deletions
  1. 8 5
      package/om-watchdog/files/om-watchdog.init

+ 8 - 5
package/om-watchdog/files/om-watchdog.init

@@ -12,11 +12,14 @@ boot() {
 		. /lib/ar71xx.sh
 		. /lib/ar71xx.sh
 		local board=$(ar71xx_board_name)
 		local board=$(ar71xx_board_name)
 
 
-		if [ "$board" = "om2p" ]; then
-			service_start /sbin/om-watchdog 12
-		elif [ "$board" = "om2p-lc" ]; then
-			service_start /sbin/om-watchdog 26
-		fi
+		case "$board" in
+			"om2p"|"om2p-hs")
+				service_start /sbin/om-watchdog 12
+				;;
+			"om2p-lc")
+				service_start /sbin/om-watchdog 26
+				;;
+		esac
 	else
 	else
 		#we assume it is om1p in this case
 		#we assume it is om1p in this case
 		service_start /sbin/om-watchdog 3
 		service_start /sbin/om-watchdog 3