unifi: add sysupgrade and leds support
authorClaudio Mignanti <c.mignanti@gmail.com>
Mon, 20 Dec 2010 17:28:34 +0000 (17:28 +0000)
committerClaudio Mignanti <c.mignanti@gmail.com>
Mon, 20 Dec 2010 17:28:34 +0000 (17:28 +0000)
SVN-Revision: 24737

target/linux/ar71xx/base-files/etc/diag.sh
target/linux/ar71xx/base-files/lib/ar71xx.sh
target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index add552ea31bcbb0d44cb646f2fbb2301d469865c..23370446ab90209cb07f5adbf8fa1785483f805c 100755 (executable)
@@ -102,6 +102,9 @@ get_status_led() {
        tl-wr941nd)
                status_led="tl-wr941nd:green:system"
                ;;
+       unifi)
+               status_led="ubnt:green:dome"
+               ;;
        wndr3700)
                status_led="wndr3700:green:power"
                ;;
index ad173e815a529b96820e5bcaeec107dbdd5d8cd6..c08860542e2e9e7ed2771da775b0ea86358016d3 100755 (executable)
@@ -121,6 +121,9 @@ ar71xx_board_name() {
        *TL-WR941ND)
                name="tl-wr941nd"
                ;;
+       *UniFi)
+               name="unifi"
+               ;;
        *WP543)
                name="wp543"
                ;;
index 1f6c62d439ea5fd593fa257da577d081ff9d8d88..0b867c0052335df0be9f945ec27a0beeb17bc9c2 100755 (executable)
@@ -68,7 +68,7 @@ platform_check_image() {
        [ "$ARGC" -gt 1 ] && return 1
 
        case "$board" in
-       ap81 | ap83 | dir-600-a1 | dir-615-c1 | dir-825-b1 | mzk-w04nu | mzk-w300nh | tew-632brp | wrt400n | bullet-m | nanostation-m | rocket-m | wzr-hp-g300nh | nbg460n_550n_550nh)
+       ap81 | ap83 | dir-600-a1 | dir-615-c1 | dir-825-b1 | mzk-w04nu | mzk-w300nh | tew-632brp | wrt400n | bullet-m | nanostation-m | rocket-m | wzr-hp-g300nh | nbg460n_550n_550nh | unifi )
                [ "$magic" != "2705" ] && {
                        echo "Invalid image type."
                        return 1