From 22ae6b82ebfe59745cd0f8968908a430233ae6f6 Mon Sep 17 00:00:00 2001 From: juhosg Date: Tue, 29 May 2012 16:39:17 +0000 Subject: ar71xx: use the generic uci-default functions for initial LED setup git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31992 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux/ar71xx/base-files/etc/uci-defaults/leds | 212 ++++++--------------- 1 file changed, 60 insertions(+), 152 deletions(-) (limited to 'target/linux/ar71xx/base-files/etc') diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/leds index 2ec67cb69..e18afaa81 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/leds @@ -3,240 +3,148 @@ # Copyright (C) 2011 OpenWrt.org # -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 <