aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bmips/bcm6328/base-files/etc/board.d/01_leds
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/bmips/bcm6328/base-files/etc/board.d/01_leds')
-rw-r--r--target/linux/bmips/bcm6328/base-files/etc/board.d/01_leds16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/bmips/bcm6328/base-files/etc/board.d/01_leds b/target/linux/bmips/bcm6328/base-files/etc/board.d/01_leds
new file mode 100644
index 0000000000..5ece1f7ba1
--- /dev/null
+++ b/target/linux/bmips/bcm6328/base-files/etc/board.d/01_leds
@@ -0,0 +1,16 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+. /lib/functions/leds.sh
+. /lib/functions/uci-defaults.sh
+
+board_config_update
+
+case "$(board_name)" in
+sercomm,ad1018)
+ ucidef_set_led_usbport "usb" "USB" "green:usb" "usb1-port1" "usb2-port1"
+ ;;
+esac
+
+board_config_flush
+
+exit 0