ramips: rt-n12p: use the boardname helper variable
authorMathias Kresin <dev@kresin.me>
Wed, 29 Aug 2018 06:59:46 +0000 (08:59 +0200)
committerMathias Kresin <dev@kresin.me>
Wed, 29 Aug 2018 07:23:11 +0000 (09:23 +0200)
Use the helper variable for the Asus RT-N12P as it is done by all
boards.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ramips/base-files/etc/board.d/01_leds

index 44511bb0f6c1e61570bf9d75438a6b092f0238d8..a937cdba5ed2f6e19729556c64018833c622da95 100755 (executable)
@@ -393,10 +393,10 @@ rt-ac51u)
        set_usb_led "$boardname:blue:usb" "1-1"
        ;;
 rt-n12p)
-       ucidef_set_led_default "power" "power" "$board:green:power" "1"
-       ucidef_set_led_netdev "lan" "lan" "$board:green:lan" eth0.1
-       ucidef_set_led_netdev "wan" "wan" "$board:green:wan" eth0.2
-       set_wifi_led "$board:green:air"
+       ucidef_set_led_default "power" "power" "$boardname:green:power" "1"
+       ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" eth0.1
+       ucidef_set_led_netdev "wan" "wan" "$boardname:green:wan" eth0.2
+       set_wifi_led "$boardname:green:air"
        ;;
 rt-n14u)
        ucidef_set_led_default "power" "power" "$boardname:blue:power" "1"