From b4588c853838c7133d1813f78cafde14f9befa19 Mon Sep 17 00:00:00 2001
From: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Date: Wed, 3 Jul 2019 23:22:44 +0200
Subject: kernel/om-watchdog: Apply device renames from ramips

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---
 package/kernel/om-watchdog/files/om-watchdog.init | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

(limited to 'package')

diff --git a/package/kernel/om-watchdog/files/om-watchdog.init b/package/kernel/om-watchdog/files/om-watchdog.init
index 10eb55ccc2..4c407dadae 100644
--- a/package/kernel/om-watchdog/files/om-watchdog.init
+++ b/package/kernel/om-watchdog/files/om-watchdog.init
@@ -47,12 +47,9 @@ get_gpio() {
 			return 17
 			;;
 		esac
-	elif [ -r /lib/ramips.sh ]; then
-		case "$board" in
-		"rut5xx")
-			return 11
-			;;
-		esac
+	elif [ "$board" = "teltonika_rut5xx" ]; then
+		# ramips
+		return 11
 	else
 		#we assume it is om1p in this case
 		return 3
-- 
cgit v1.2.3