From 6a19b996704c3171adc7f0f7d609bcb3993aaa8b Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 12 Nov 2011 23:40:21 +0000 Subject: [PATCH] lantiq: add uci-defaults code for handling leds SVN-Revision: 29004 --- .../lantiq/base-files/etc/uci-defaults/leds | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100755 target/linux/lantiq/base-files/etc/uci-defaults/leds diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/leds b/target/linux/lantiq/base-files/etc/uci-defaults/leds new file mode 100755 index 0000000000..84eda33316 --- /dev/null +++ b/target/linux/lantiq/base-files/etc/uci-defaults/leds @@ -0,0 +1,102 @@ +#!/bin/sh +# +# Copyright (C) 2011 OpenWrt.org +# based on ar71xx +# + +COMMIT_SYSTEM=0 + +set_led_netdev() { + local cfg="led_$1" + local name=$2 + local sysfs=$3 + local dev=$4 + + uci -q get system.$cfg && return 0 + + uci batch <