om-watchdog: add support for Teltonika RUT5xx (ramips)
[openwrt/openwrt.git] / package / kernel / om-watchdog / files / om-watchdog.init
index 7d5d2165096fb84ffc1d8a5d6870f1813d60de34..906ee665fd85be7a8e9f42fe1d4679258d17ff71 100644 (file)
@@ -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