ath79: fix sorting and harmonize indent in tiny board.d files
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 5 Nov 2019 12:11:56 +0000 (13:11 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 5 Nov 2019 12:14:29 +0000 (13:14 +0100)
This seems to have been overlooked when splitting base files.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/tiny/base-files/etc/board.d/01_leds
target/linux/ath79/tiny/base-files/etc/board.d/02_network

index bb1799c645893b15aeb82a076680bdc243627477..03f135f0b0a6de1ae89310e8fb7493e697a61a0b 100755 (executable)
@@ -33,16 +33,6 @@ on,n150r)
        ucidef_set_led_switch "lan1" "LAN1" "netgear:green:lan1" "switch0" "0x02" "0x0f"
        ucidef_set_led_switch "lan2" "LAN2" "netgear:green:lan2" "switch0" "0x04" "0x0f"
        ;;
-tplink,tl-wr841-v9|\
-tplink,tl-wr841-v10|\
-tplink,tl-wr841-v11|\
-tplink,tl-wr841-v12)
-       ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
-       ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
-       ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
-       ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
-       ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
-       ;;
 tplink,tl-mr3020-v1|\
 tplink,tl-mr3040-v2)
        ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0"
@@ -69,6 +59,16 @@ tplink,tl-wr941-v4)
        ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x08"
        ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x10"
        ;;
+tplink,tl-wr841-v9|\
+tplink,tl-wr841-v10|\
+tplink,tl-wr841-v11|\
+tplink,tl-wr841-v12)
+       ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1"
+       ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x10"
+       ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08"
+       ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x04"
+       ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02"
+       ;;
 tplink,tl-wr940n-v3|\
 tplink,tl-wr940n-v4|\
 tplink,tl-wr941nd-v6)
index 49fccc0b2edb24b4fe2aac2c9a74e3436c6eb63c..b2616456e4742a436aaafa0b2613ad6dacb31d50 100755 (executable)
@@ -8,6 +8,25 @@ ath79_setup_interfaces()
        local board="$1"
 
        case "$board" in
+       buffalo,whr-g301n)
+               ucidef_set_interface_wan "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
+       netgear,wnr1000-v2|\
+       netgear,wnr2000-v3|\
+       netgear,wnr612-v2|\
+       on,n150r|\
+       tplink,tl-wr740n-v1|\
+       tplink,tl-wr740n-v3|\
+       tplink,tl-wr741-v1|\
+       tplink,tl-wr743nd-v1|\
+       tplink,tl-wr841-v5|\
+       tplink,tl-wr941-v4)
+               ucidef_set_interface_wan "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
+               ;;
        pqi,air-pen|\
        tplink,tl-mr10u|\
        tplink,tl-mr3020-v1|\
@@ -16,11 +35,6 @@ ath79_setup_interfaces()
        tplink,tl-wr703n)
                ucidef_set_interface_lan "eth0"
                ;;
-       buffalo,whr-g301n)
-               ucidef_set_interface_wan "eth0"
-               ucidef_add_switch "switch0" \
-                       "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
-               ;;
        tplink,tl-mr3220-v1|\
        tplink,tl-mr3420-v1|\
        tplink,tl-wr841-v7|\
@@ -35,24 +49,6 @@ ath79_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
                ;;
-       netgear,wnr1000-v2|\
-       netgear,wnr2000-v3|\
-       netgear,wnr612-v2|\
-       on,n150r|\
-       tplink,tl-wr740n-v1|\
-       tplink,tl-wr740n-v3|\
-       tplink,tl-wr741-v1|\
-       tplink,tl-wr743nd-v1|\
-       tplink,tl-wr841-v5|\
-       tplink,tl-wr941-v4)
-               ucidef_set_interface_wan "eth0"
-               ucidef_add_switch "switch0" \
-               "0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
-               ;;
-       tplink,tl-wr941n-v7-cn)
-               ucidef_add_switch "switch0" \
-                       "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
-               ;;
        tplink,tl-mr3420-v2|\
        tplink,tl-wr740n-v4|\
        tplink,tl-wr741nd-v4|\
@@ -64,6 +60,10 @@ ath79_setup_interfaces()
        tplink,tl-wr941-v2)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
                ;;
+       tplink,tl-wr941n-v7-cn)
+               ucidef_add_switch "switch0" \
+                       "0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
+               ;;
        *)
                ucidef_set_interfaces_lan_wan "eth0" "eth1"
                ;;