X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d8f4833329935373d318a6a04cd098a8f3f701d0..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 88538f84f..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 <