ALT Linux Bugzilla
– Attachment 5007 Details for
Bug 25897
usb-modeswitch не срабатывает на этапе загрузки
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Принудительное добавление USB-устройств
usb-coldplug.patch (text/plain), 591 bytes, created by
manowar@altlinux.org
on 2011-07-11 19:20:03 MSK
(
hide
)
Description:
Принудительное добавление USB-устройств
Filename:
MIME Type:
Creator:
manowar@altlinux.org
Created:
2011-07-11 19:20:03 MSK
Size:
591 bytes
patch
obsolete
>diff --git a/scripts/udevd b/scripts/udevd >index 0e6ef3f..9b336c5 100644 >--- a/scripts/udevd >+++ b/scripts/udevd >@@ -227,12 +227,21 @@ detach_filesystem() > attach_pts_filesystem > } > >+usb_coldplug() >+{ >+ # Another round of USB coldplugging to kick devices into operation >+ # which lacked drivers before. >+ for dev in /sys/bus/usb/devices/*/uevent; do >+ [ -e "$dev" ] && echo -n add > "$dev" >+ done >+} >+ > start() > { > # don't use udev if sysfs is not mounted. > [ ! -d $sysfs_dir/block ] && exit 1 > >- prepare_filesystem >+ prepare_filesystem && usb_coldplug > RETVAL=$? > return $RETVAL > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25897
:
5007
|
5008