diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh index 8ba95a22ff7..2658d439ac0 100644 --- a/package/base-files/files/lib/functions/uci-defaults.sh +++ b/package/base-files/files/lib/functions/uci-defaults.sh @@ -178,6 +178,22 @@ EOF UCIDEF_LEDS_CHANGED=1 } +ucidef_set_led_ide_disk() { + local cfg="led_$1" + local name=$2 + local sysfs=$3 + + uci -q get system.$cfg && return 0 + + uci batch <