diff options
author | Mathias Kresin <dev@kresin.me> | 2017-05-12 22:36:07 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-07-15 23:13:34 +0200 |
commit | f12a32630ff52b5e13397f64e9fb31708e97fb60 (patch) | |
tree | 46db1bb2606e05b40aaf2e43e7468531fa8df7b6 /package/kernel/om-watchdog | |
parent | ced05ca9e092817f2f4d4fe25c5c56700838a3ad (diff) | |
download | upstream-f12a32630ff52b5e13397f64e9fb31708e97fb60.tar.gz upstream-f12a32630ff52b5e13397f64e9fb31708e97fb60.tar.bz2 upstream-f12a32630ff52b5e13397f64e9fb31708e97fb60.zip |
treewide: use the generic board_name function
Use the generic function instead ot the target specific ones.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'package/kernel/om-watchdog')
-rw-r--r-- | package/kernel/om-watchdog/files/om-watchdog.init | 8 |
1 files changed, 2 insertions, 6 deletions
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 |