diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-18 12:42:53 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-01-18 12:42:53 +0000 |
commit | 3a2cccda2eb45c6b55ef33c73a4af2c88935f383 (patch) | |
tree | 42f8f7a8c928a04176ec598da4684b0d778e216d /target/linux/lantiq/base-files/etc/uci-defaults/leds | |
parent | 0de21d9747688e37cc9a9fb92c41abcdde9ef09f (diff) | |
download | upstream-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.tar.gz upstream-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.tar.bz2 upstream-3a2cccda2eb45c6b55ef33c73a4af2c88935f383.zip |
all targets: use numerically prefixed uci-defaults file names to better control order of execution
SVN-Revision: 35217
Diffstat (limited to 'target/linux/lantiq/base-files/etc/uci-defaults/leds')
-rwxr-xr-x | target/linux/lantiq/base-files/etc/uci-defaults/leds | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/leds b/target/linux/lantiq/base-files/etc/uci-defaults/leds deleted file mode 100755 index 3f87fe0758..0000000000 --- a/target/linux/lantiq/base-files/etc/uci-defaults/leds +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2011 OpenWrt.org -# based on ar71xx -# - -. /lib/functions/uci-defaults.sh -. /lib/functions/lantiq.sh - -[ -e "/sys/class/leds/wifi" ] && ucidef_set_led_wlan "wifi" "wifi" "wifi" "phy0tpt" -[ -e "/sys/class/leds/usb" ] && ucidef_set_led_usbdev "usb" "usb" "usb" "1-1" -[ -e "/sys/class/leds/dsl" ] && ucidef_set_led_netdev "dsl" "dsl" "dsl" "pppoe-wan" - -for a in `ls /sys/class/leds/`; do - grep -q "\[none\]" /sys/class/leds/$a/trigger - [ $? -eq 0 ] && ucidef_set_led_default $a $a $a `cat /sys/class/leds/$a/brightness` -done - -board=$(lantiq_board_id) - -case "$board" in -*) - ;; -esac - -ucidef_commit_leds - -exit 0 |