From: John Crispin Date: Sat, 12 Nov 2011 23:40:21 +0000 (+0000) Subject: lantiq: add uci-defaults code for handling leds X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a8797d0de6fac61582e9e9212e55e0bc1449f4b1;p=openwrt%2Fstaging%2Fstintel.git lantiq: add uci-defaults code for handling leds SVN-Revision: 29004 --- 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 <