ath79: change ledtrig on GL.iNet AR150
authorPaul Wassi <p.wassi@gmx.at>
Fri, 4 Jan 2019 22:35:09 +0000 (23:35 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Thu, 14 Feb 2019 15:56:14 +0000 (16:56 +0100)
Change the ledtrig for LAN from netdev to switch.
Although eth1 comes out of the device at a single port,
this port is a switch-port and therefore the LED
must be triggered by that.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
target/linux/ath79/base-files/etc/board.d/01_leds

index 6b4bec56ce514b31b8098541ad8171a882b6deeb..804f1fca8218901e3ff3087ab6babc199a94fd89 100755 (executable)
@@ -52,7 +52,7 @@ etactica,eg200)
        ;;
 glinet,gl-ar150)
        ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"
-       ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth1"
+       ucidef_set_led_switch "lan" "LAN" "$boardname:green:lan" "switch0" "0x02"
        ;;
 glinet,gl-x750)
        ucidef_set_led_netdev "wan" "WAN" "$boardname:green:wan" "eth0"