mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git
synced 2024-11-14 14:33:44 +08:00
usb-devices: Fix usb-devices with busybox
The busybox find command is missing the -printf parameter leading to the error: find: unrecognized: -printf Replace the parameter with sed. This patch was originally created by Daniel Fancsali. Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
This commit is contained in:
parent
b1926fa67a
commit
da155d965a
@ -192,7 +192,7 @@ if [ ! -d /sys/bus ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for device in $(find /sys/bus/usb/devices -name 'usb*' -printf '%f\n' | sort -V)
|
||||
for device in $(find /sys/bus/usb/devices -name 'usb*' | sed -E 's#^.*/##g' | sort -V)
|
||||
do
|
||||
print_device "/sys/bus/usb/devices/$device" 0 0 0
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user