aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/om-watchdog/files
diff options
context:
space:
mode:
authorSteffen Weinreich <steve@weinreich.org>2017-04-25 16:44:39 +0200
committerPiotr Dymacz <pepe2k@gmail.com>2017-05-15 22:43:33 +0200
commit04e91631e0500b85c4d9948c2662bc203a7a458d (patch)
tree37d27d972c9edb77b154f5b5b1d6cc4b54806c27 /package/kernel/om-watchdog/files
parent08ab3fda01e1c59fd4b3f94b089b30eb486f72b4 (diff)
downloadupstream-04e91631e0500b85c4d9948c2662bc203a7a458d.tar.gz
upstream-04e91631e0500b85c4d9948c2662bc203a7a458d.tar.bz2
upstream-04e91631e0500b85c4d9948c2662bc203a7a458d.zip
om-watchdog: add support for Teltonika RUT5xx (ramips)
Add rut5xx GPIO PIN selection to om-package startup script. Testet on a RUT500 device, the timeout value of the hardware watchdog is about 280 sec. Signed-off-by: Steffen Weinreich <steve@weinreich.org> [split into two commits, bump PKG_RELEASE] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
Diffstat (limited to 'package/kernel/om-watchdog/files')
-rw-r--r--package/kernel/om-watchdog/files/om-watchdog.init9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/kernel/om-watchdog/files/om-watchdog.init b/package/kernel/om-watchdog/files/om-watchdog.init
index 7d5d216509..906ee665fd 100644
--- a/package/kernel/om-watchdog/files/om-watchdog.init
+++ b/package/kernel/om-watchdog/files/om-watchdog.init
@@ -48,6 +48,15 @@ get_gpio() {
return 17
;;
esac
+ elif [ -r /lib/ramips.sh ]; then
+ . /lib/ramips.sh
+ local board=$(ramips_board_name)
+
+ case "$board" in
+ "rut5xx")
+ return 11
+ ;;
+ esac
else
#we assume it is om1p in this case
return 3