aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/usbdev
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-04-22 09:43:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-04-22 09:43:27 +0000
commit3276e925833aa78a9dcce9819b63fd6876ec3751 (patch)
tree4928f84a34567b93f3c35452eec660dd02a96f18 /main/busybox-initscripts/usbdev
parent6645fef357b5df23c46a7397861e357c975708bd (diff)
downloadaports-3276e925833aa78a9dcce9819b63fd6876ec3751.tar.bz2
aports-3276e925833aa78a9dcce9819b63fd6876ec3751.tar.xz
main/busybox-initscripts: minor mdev fixes
got hints from solar
Diffstat (limited to 'main/busybox-initscripts/usbdev')
-rw-r--r--main/busybox-initscripts/usbdev8
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