aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/orion/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/orion/base-files')
-rw-r--r--target/linux/orion/base-files/etc/hotplug.d/usb/10-usb4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/orion/base-files/etc/hotplug.d/usb/10-usb b/target/linux/orion/base-files/etc/hotplug.d/usb/10-usb
index 5572daede1..2ae0f73bdc 100644
--- a/target/linux/orion/base-files/etc/hotplug.d/usb/10-usb
+++ b/target/linux/orion/base-files/etc/hotplug.d/usb/10-usb
@@ -30,9 +30,9 @@ usb_led_off() {
}
get_usb_led() {
- local hardware=`sed -n /Hardware/s/.*:.//p /proc/cpuinfo`
+ . /lib/functions.sh
- case "${hardware}" in
+ case "$(board_name)" in
'Linksys WRT350N v2')
usb_led='wrt350nv2:green:usb'
usb_device='1-1:1.0'