diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-05 11:02:03 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-05 11:02:51 +0000 |
commit | 98a4d550920704cf79e621714053157926dd3f52 (patch) | |
tree | f810adc7cb7b6a2d911d7348dd95c636cbbbe6b5 /main/busybox-initscripts/mdev.initd | |
parent | 5949f936379d49aee62e08ed7a81b6c61a984a1b (diff) | |
download | aports-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.initd | 6 |
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 $? |