brcm2708: properly detect the Raspberry Pi Zero
[openwrt/staging/dedeckeh.git] / target / linux / brcm2708 / base-files / etc / diag.sh
index 3a8dc86112303097bd12a967d4d68ce66261b050..2a866e4339bdf873ae92587420bc06f5831c81f8 100644 (file)
@@ -1,7 +1,5 @@
 #!/bin/sh
-#
-# Copyright (C) 2015 OpenWrt.org
-#
+# Copyright (C) 2015-2016 OpenWrt.org
 
 . /lib/functions/leds.sh
 . /lib/brcm2708.sh
@@ -9,11 +7,13 @@
 set_state() {
        case "$(brcm2708_board_name)" in
        rpi-b |\
-       rpi-cm)
+       rpi-cm |\
+       rpi-zero)
                status_led="led0"
                ;;
        rpi-b-plus |\
-       rpi-2-b)
+       rpi-2-b |\
+       rpi-3-b)
                status_led="led1"
                ;;
        esac