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 000000000..84eda3331 --- /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 <