mvebu: use device-tree board detection
[openwrt/staging/dedeckeh.git] / target / linux / mvebu / base-files / etc / diag.sh
index 327a82d..be82537 100644 (file)
@@ -7,24 +7,24 @@
 
 get_status_led() {
        case $(board_name) in
-       armada-385-linksys-caiman)
+       linksys,caiman)
                status_led="caiman:white:power"
                ;;
-       armada-385-linksys-cobra)
+       linksys,cobra)
                status_led="cobra:white:power"
                ;;
-       armada-385-linksys-rango)
+       linksys,mamba)
+               status_led="mamba:white:power"
+               ;;
+       linksys,rango)
                status_led="rango:white:power"
                ;;
-       armada-385-linksys-shelby)
+       linksys,shelby)
                status_led="shelby:white:power"
                ;;
-       armada-385-linksys-venom)
+       linksys,venom)
                status_led="venom:blue:power"
                ;;
-       armada-xp-linksys-mamba)
-               status_led="mamba:white:power"
-               ;;
        esac
 }