From: Jonas Gorski Date: Fri, 4 Sep 2015 14:45:45 +0000 (+0000) Subject: base-files: allow setting ide-disk led trigger X-Git-Tag: reboot~2131 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e1824f2543eb49a6d0bbc242f8a2f9809593a404;p=openwrt%2Fstaging%2Fjogo.git base-files: allow setting ide-disk led trigger Signed-off-by: Jonas Gorski SVN-Revision: 46794 --- 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 <