X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/44a7438217323d90cc430627b82fd165fba52250..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 a0779effd..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 <