The heartbeat trigger has the option to be inverted, however openwrt/uci/luci have no way to set this. This patch adds this support. Signed-off-by: Olliver Schinagl <[email protected]>
@@ -69,6 +69,10 @@ load_led() {
return 1
}
case "$trigger" in
+ "heartbeat")
+ echo "${inverted}" > "/sys/class/leds/${sysfs}/invert"
+ ;;
+
"netdev")
[ -n "$dev" ] && {
echo $dev > /sys/class/leds/${sysfs}/device_name