From 3a3aa7378b980fcd2ef7c1284d52ec4fe510aacb Mon Sep 17 00:00:00 2001 From: juhosg Date: Tue, 29 May 2012 16:39:15 +0000 Subject: kirkwood: use uci-defaults to configure different boards Signed-off-by: Luka Perkov git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31990 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../kirkwood/base-files/etc/uci-defaults/leds | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 target/linux/kirkwood/base-files/etc/uci-defaults/leds (limited to 'target/linux/kirkwood/base-files/etc/uci-defaults/leds') diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/leds b/target/linux/kirkwood/base-files/etc/uci-defaults/leds new file mode 100644 index 000000000..a0b1c1c1f --- /dev/null +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/leds @@ -0,0 +1,57 @@ +#!/bin/sh +# +# Copyright (C) 2012 OpenWrt.org +# + +COMMIT_SYSTEM=0 + +set_led_netdev() { + local cfg="led_$1" + local sysfs=$2 + local dev=$3 + + uci -q get system.$cfg && return 0 + + uci batch <