X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0f535ad2611b82842807d8baff856b338d2cfdc0..01af86f6ed6841ac71090e7c5a2d0edb00b69324:/target/linux/ar71xx/base-files/etc/uci-defaults/leds?ds=sidebyside diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds index cd910cca6..5b5aea35a 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 <