v1.5 branch refresh based upon upstream master @ c8677ca89e53e3be7988d54280fce166cc894a7e
[librecmc/librecmc.git] / package / kernel / om-watchdog / files / om-watchdog.init
index 906ee665fd85be7a8e9f42fe1d4679258d17ff71..10eb55ccc27f2af585e63ebe7768503243197d59 100644 (file)
@@ -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