diff options
Diffstat (limited to 'main/busybox-initscripts/usbdev')
-rw-r--r-- | main/busybox-initscripts/usbdev | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/busybox-initscripts/usbdev b/main/busybox-initscripts/usbdev index b1aff296cd..ea5b915573 100644 --- a/main/busybox-initscripts/usbdev +++ b/main/busybox-initscripts/usbdev @@ -15,13 +15,13 @@ add_zeros () { # bus and device dirs in /sys -local USB_PATH=$(echo $MDEV | sed -e 's/usbdev\([0-9]\).[0-9]/usb\1/') +USB_PATH=$(echo $MDEV | sed -e 's/usbdev\([0-9]\).[0-9]/usb\1/') USB_PATH=$(find /sys/devices -type d -name "$USB_PATH") -local USB_DEV_DIR=$(echo $MDEV | sed -e 's/usbdev\([0-9]\).\([0-9]\)/\1-\2/') +USB_DEV_DIR=$(echo $MDEV | sed -e 's/usbdev\([0-9]\).\([0-9]\)/\1-\2/') # dir names in /dev -local BUS=$(add_zeros $(echo $MDEV | sed -e 's/^usbdev\([0-9]\).[0-9]/\1/')) -local USB_DEV=$(add_zeros $(echo $MDEV | sed -e 's/^usbdev[0-9].\([0-9]\)/\1/')) +BUS=$(add_zeros $(echo $MDEV | sed -e 's/^usbdev\([0-9]\).[0-9]/\1/')) +USB_DEV=$(add_zeros $(echo $MDEV | sed -e 's/^usbdev[0-9].\([0-9]\)/\1/')) # try to load the proper driver for usb devices |