From: juhosg Date: Sat, 31 Dec 2011 15:02:46 +0000 (+0000) Subject: ar71xx: define LAN/WAN LEDs for the TL-WR741N/ND boards X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/a604775f6617c9a73e239ccd7632c19aa9512750?hp=5a33add62c03f67c122ed7a139ad8f9615fbab74 ar71xx: define LAN/WAN LEDs for the TL-WR741N/ND boards git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29631 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds index 88538f84f..0fdab7b2a 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 <