From e5c40dc4c357665c3129ac5ad15943643183c32e Mon Sep 17 00:00:00 2001 From: blogic Date: Sat, 12 Nov 2011 23:40:21 +0000 Subject: lantiq: add uci-defaults code for handling leds git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29004 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux/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 (limited to 'target/linux/lantiq/base-files') 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 <