aboutsummaryrefslogtreecommitdiff
path: root/target/linux/sifiveu/base-files/etc/board.d/01_leds
blob: 5610a791ecd0580241eccbadda19d5ac7db0d115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2022 OpenWrt.org
#

. /lib/functions/uci-defaults.sh

board_config_update

case "$(board_name)" in
sifive,hifive-unleashed-a00)
	ucidef_set_led_netdev "lan" "LAN" "green:d3" "eth0"
	;;
sifive,hifive-unmatched-a00)
	ucidef_set_led_netdev "lan" "LAN" "green:d2" "eth0"
	;;
esac

board_config_flush

exit 0