openwrtv4/target/linux/mvebu/base-files/etc/uci-defaults/01_leds
Luka Perkov 92e6e80080 targets: files in uci-defaults do not need to be executables
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 44304
2015-02-07 19:58:52 +00:00

22 lines
383 B
Bash

#!/bin/sh
#
# Copyright (C) 2014 OpenWrt.org
#
. /lib/functions/uci-defaults.sh
. /lib/mvebu.sh
board=$(mvebu_board_name)
case "$board" in
armada-xp-mamba)
ucidef_set_led_netdev "wan" "WAN" "mamba:white:wan" "eth1"
ucidef_set_led_usbdev "usb2" "USB2" "mamba:white:usb2" "1-1"
ucidef_set_led_usbdev "usb3" "USB3" "mamba:white:usb3_1" "2-2"
;;
esac
ucidef_commit_leds
exit 0