From e1824f2543eb49a6d0bbc242f8a2f9809593a404 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Fri, 4 Sep 2015 14:45:45 +0000 Subject: base-files: allow setting ide-disk led trigger Signed-off-by: Jonas Gorski SVN-Revision: 46794 --- package/base-files/files/lib/functions/uci-defaults.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'package/base-files/files/lib/functions') diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh index 8ba95a22ff..2658d439ac 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 <