oxnas: fix the incorrect board names
authorFelix Fietkau <nbd@openwrt.org>
Mon, 18 Jan 2016 23:34:42 +0000 (23:34 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 18 Jan 2016 23:34:42 +0000 (23:34 +0000)
Signed-off-by: Shonn Lu <countrysideboy@qq.com>
Acked-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 48337

target/linux/oxnas/base-files/etc/board.d/01_leds
target/linux/oxnas/base-files/etc/diag.sh
target/linux/oxnas/base-files/lib/oxnas.sh

index 52da9456809a98e6ab9c0ae9c9af458cbdfafa42..f29ccff7aa1e00afb0669c532e19a95ad71d1759 100755 (executable)
@@ -14,7 +14,7 @@ case $board in
        kd20)
                ucidef_set_led_default "power" "power" "kd20:blue:status" "1"
                ;;
-       pogoplugpro | pogoplugv3)
+       pogoplug-pro | pogoplug-v3)
                ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1"
                ;;
 
index 5370696b44d88aac7146a58ca71379f20a03145a..8f484ae66e8df5f4f505259e148edf651d201ee6 100644 (file)
@@ -6,13 +6,13 @@
 
 get_status_led() {
        case $(oxnas_board_name) in
-       stg212)
+       stg-212)
                status_led="zyxel:blue:status"
                ;;
        kd20)
                status_led="kd20:blue:status"
                ;;
-       pogoplugpro | pogoplugv3)
+       pogoplug-pro | pogoplug-v3)
                status_led="pogoplug:blue:internal"
                ;;
        esac
index 1a04d558d08ae826cb7b02c662c7357ce763f2bd..2a07928f76ce3396167e2598001d41eebf857e31 100755 (executable)
@@ -14,16 +14,16 @@ oxnas_board_detect() {
 
        case "$machine" in
        *"MitraStar Technology Corp. STG-212"*)
-               name="stg212"
+               name="stg-212"
                ;;
        *"Shuttle KD20"*)
                name="kd20"
                ;;
        *"Pogoplug Pro"*)
-               name="pogoplugpro"
+               name="pogoplug-pro"
                ;;
        *"Pogoplug V3"*)
-               name="pogoplugv3"
+               name="pogoplug-v3"
                ;;
        esac