mirror of https://github.com/hak5/openwrt.git
lantiq: set default led configuration from /sys entry later, after per board settings
Signed-off-by: Eddi De Pieri <eddi@depieri.net> SVN-Revision: 43255lede-17.01
parent
7cc72e4b93
commit
901dddce31
|
@ -12,11 +12,6 @@
|
||||||
[ -e "/sys/class/leds/usb2" ] && ucidef_set_led_usbdev "usb2" "usb2" "usb2" "2-1"
|
[ -e "/sys/class/leds/usb2" ] && ucidef_set_led_usbdev "usb2" "usb2" "usb2" "2-1"
|
||||||
[ -e "/sys/class/leds/internet" ] && ucidef_set_led_netdev "internet" "internet" "internet" "pppoe-wan"
|
[ -e "/sys/class/leds/internet" ] && ucidef_set_led_netdev "internet" "internet" "internet" "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_name)
|
board=$(lantiq_board_name)
|
||||||
|
|
||||||
case "$board" in
|
case "$board" in
|
||||||
|
@ -34,6 +29,11 @@ BTHOMEHUBV2B)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
ucidef_commit_leds
|
ucidef_commit_leds
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue