aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/mdev.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-12-05 11:02:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-12-05 11:02:51 +0000
commit98a4d550920704cf79e621714053157926dd3f52 (patch)
treef810adc7cb7b6a2d911d7348dd95c636cbbbe6b5 /main/busybox-initscripts/mdev.initd
parent5949f936379d49aee62e08ed7a81b6c61a984a1b (diff)
downloadaports-98a4d550920704cf79e621714053157926dd3f52.tar.bz2
aports-98a4d550920704cf79e621714053157926dd3f52.tar.xz
main/busybox-initscripts: try fix usb devices
ref #1481
Diffstat (limited to 'main/busybox-initscripts/mdev.initd')
-rw-r--r--main/busybox-initscripts/mdev.initd6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/busybox-initscripts/mdev.initd b/main/busybox-initscripts/mdev.initd
index e9309c7006..6638ec4489 100644
--- a/main/busybox-initscripts/mdev.initd
+++ b/main/busybox-initscripts/mdev.initd
@@ -20,6 +20,12 @@ start() {
# use mdev for hotplug
echo "/sbin/mdev" > /proc/sys/kernel/hotplug
+ # mdev -s will not create /dev/usb[1-9] devices with recent kernels
+ # so we trigger hotplug events for usb for now
+ for i in $(find /sys/device -name 'usb[0-9]*'); do
+ [ -e $i/uevent ] && echo add > $i/uevent
+ done
+
# create devices
mdev -s
eend $?