unifi: add sysupgrade and leds support

SVN-Revision: 24737
master
Claudio Mignanti 14 years ago
parent 0f157c1ad2
commit 2c0596cd69
  1. 3
      target/linux/ar71xx/base-files/etc/diag.sh
  2. 3
      target/linux/ar71xx/base-files/lib/ar71xx.sh
  3. 2
      target/linux/ar71xx/base-files/lib/upgrade/platform.sh

@ -102,6 +102,9 @@ get_status_led() {
tl-wr941nd) tl-wr941nd)
status_led="tl-wr941nd:green:system" status_led="tl-wr941nd:green:system"
;; ;;
unifi)
status_led="ubnt:green:dome"
;;
wndr3700) wndr3700)
status_led="wndr3700:green:power" status_led="wndr3700:green:power"
;; ;;

@ -121,6 +121,9 @@ ar71xx_board_name() {
*TL-WR941ND) *TL-WR941ND)
name="tl-wr941nd" name="tl-wr941nd"
;; ;;
*UniFi)
name="unifi"
;;
*WP543) *WP543)
name="wp543" name="wp543"
;; ;;

@ -68,7 +68,7 @@ platform_check_image() {
[ "$ARGC" -gt 1 ] && return 1 [ "$ARGC" -gt 1 ] && return 1
case "$board" in 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" ] && { [ "$magic" != "2705" ] && {
echo "Invalid image type." echo "Invalid image type."
return 1 return 1

Loading…
Cancel
Save