From f12a32630ff52b5e13397f64e9fb31708e97fb60 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Fri, 12 May 2017 22:36:07 +0200 Subject: treewide: use the generic board_name function Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin --- package/kernel/om-watchdog/files/om-watchdog.init | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'package/kernel/om-watchdog') diff --git a/package/kernel/om-watchdog/files/om-watchdog.init b/package/kernel/om-watchdog/files/om-watchdog.init index 906ee665fd..10eb55ccc2 100644 --- a/package/kernel/om-watchdog/files/om-watchdog.init +++ b/package/kernel/om-watchdog/files/om-watchdog.init @@ -11,10 +11,9 @@ NAME=om-watchdog PROG=/sbin/om-watchdog get_gpio() { - if [ -r /lib/ar71xx.sh ]; then - . /lib/ar71xx.sh - local board=$(ar71xx_board_name) + local board=$(board_name) + if [ -r /lib/ar71xx.sh ]; then case "$board" in "a40"|\ "a60"|\ @@ -49,9 +48,6 @@ get_gpio() { ;; esac elif [ -r /lib/ramips.sh ]; then - . /lib/ramips.sh - local board=$(ramips_board_name) - case "$board" in "rut5xx") return 11 -- cgit v1.2.3