X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8d3dba5fcafe95e570701800016bc61b1c25295d..01af86f6ed6841ac71090e7c5a2d0edb00b69324:/target/linux/ar71xx/base-files/etc/uci-defaults/leds diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds index 8f72bbaca..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 <