From: Gabor Juhos Date: Sat, 31 Dec 2011 15:02:46 +0000 (+0000) Subject: ar71xx: define LAN/WAN LEDs for the TL-WR741N/ND boards X-Git-Tag: reboot~15253 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5c067db8a7e21d9414692f49f2478bf9dce1de8c;p=openwrt%2Fstaging%2Fxback.git ar71xx: define LAN/WAN LEDs for the TL-WR741N/ND boards SVN-Revision: 29631 --- diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds index 88538f84f2..0fdab7b2a4 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds @@ -60,6 +60,25 @@ EOF COMMIT_SYSTEM=1 } +set_led_switch() { + local cfg="led_$1" + local name=$2 + local sysfs=$3 + local trigger=$4 + local port_mask=$5 + + uci -q get system.$cfg && return 0 + + uci batch <