From ba3ad2451426b5a9db9294ed8ebedc7757c2c6e0 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Tue, 29 May 2012 16:39:15 +0000 Subject: kirkwood: use uci-defaults to configure different boards Signed-off-by: Luka Perkov SVN-Revision: 31990 --- .../kirkwood/base-files/etc/uci-defaults/leds | 57 ++++++++++++++++++++++ .../kirkwood/base-files/etc/uci-defaults/network | 42 ++++++++++++++++ target/linux/kirkwood/base-files/lib/kirkwood.sh | 5 ++ 3 files changed, 104 insertions(+) create mode 100644 target/linux/kirkwood/base-files/etc/uci-defaults/leds create mode 100644 target/linux/kirkwood/base-files/etc/uci-defaults/network create mode 100644 target/linux/kirkwood/base-files/lib/kirkwood.sh (limited to 'target/linux/kirkwood/base-files') 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 0000000..a0b1c1c --- /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 <