From: Gabor Juhos Date: Wed, 17 Oct 2012 08:26:03 +0000 (+0000) Subject: package/om-watchdog: add OM2P-HS support X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=15949b84a1aa5074a1d741093d19085d08f0fab1;p=openwrt%2Fstaging%2Flinusw.git package/om-watchdog: add OM2P-HS support Signed-off-by: Marek Lindner Signed-off-by: Gabor Juhos SVN-Revision: 33801 --- diff --git a/package/om-watchdog/files/om-watchdog.init b/package/om-watchdog/files/om-watchdog.init index 3d2666b214..bb44aa4971 100644 --- a/package/om-watchdog/files/om-watchdog.init +++ b/package/om-watchdog/files/om-watchdog.init @@ -12,11 +12,14 @@ boot() { . /lib/ar71xx.sh 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 #we assume it is om1p in this case service_start /sbin/om-watchdog 3