[OpenWrt-Devel] [PATCH] Add WNDR3700 USB LED definition to Backfire (ticket #8785)

Hannu Nyman hannu.nyman at iki.fi
Sat Oct 1 11:18:22 CEST 2011


Please add the WNDR3700 USB LED definition to Backfire: 
https://dev.openwrt.org/ticket/8785

Backfire is still missing the definition of the USB LED in its default 
configuration for WNDR3700. The LED definition was added to trunk with r24648 
<https://dev.openwrt.org/changeset/24648> 
(https://dev.openwrt.org/changeset/24648) and my patch just mirrors that 
action in Backfire.

Easiest is to similarly add it to uci-defaults 
https://dev.openwrt.org/browser/branches/backfire/target/linux/ar71xx/base-files/etc/uci-defaults/wndr3700 


There is no usbdev trigger in Backfire, but the LED can still be made to work 
as long as the definition is there in config files. The basic definition and 
the default=0 status needs to be there for the manually added hotplug scripts 
to work. (But there is no need to add the trigger-related values that are 
applied in trunk version.)

Signed-off-by: Hannu Nyman <hannu.nyman at iki.fi>

Index: /target/linux/ar71xx/base-files/etc/uci-defaults/wndr3700
===================================================================
--- /target/linux/ar71xx/base-files/etc/uci-defaults/wndr3700	(revision 28336)
+++ /target/linux/ar71xx/base-files/etc/uci-defaults/wndr3700	(working copy)
@@ -13,6 +13,10 @@
  set system.wan_led.sysfs='wndr3700:green:wan'
  set system.wan_led.name='WAN LED (green)'
  set system.wan_led.default='0'
+set system.usb_led=led
+set system.usb_led.sysfs='wndr3700:green:usb'
+set system.usb_led.name='USB LED (green)'
+set system.usb_led.default='0'
  commit system
  EOF
  }
  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20111001/75cccecc/attachment.html>


More information about the openwrt-devel mailing list