Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 50324 Details for
Bug 80705
using udev-050 and coldplug in runlevel boot makes system suffer masses of hotplug-events
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to /etc/hotplug/pci.rc
pci.rc.diff (text/plain), 1.35 KB, created by
Andre Lammel
on 2005-02-04 05:14:40 UTC
(
hide
)
Description:
patch to /etc/hotplug/pci.rc
Filename:
MIME Type:
Creator:
Andre Lammel
Created:
2005-02-04 05:14:40 UTC
Size:
1.35 KB
patch
obsolete
>--- hotplug-2004_09_23/etc/hotplug/pci.rc 2004-09-20 23:36:47.000000000 +0200 >+++ /etc/hotplug/pci.rc 2005-02-04 15:12:09.602912480 +0100 >@@ -11,6 +11,22 @@ > cd /etc/hotplug > . ./hotplug.functions > >+udev_version() { >+ local version=0 >+ >+ if [ -x "/sbin/udev" ] >+ then >+ version=$(/sbin/udev -V) >+ # We need it without a leading '0', else bash do the wrong thing >+ version="${version##0}" >+ # Older udev's will print nothing >+ [ -z "${version}" ] && version=0 >+ fi >+ >+ echo "${version}" >+} >+ >+ > pci_boot_events () > { > # make sure the pci agent will run >@@ -38,7 +54,16 @@ > sub_vendor_id=`cat $PCI_DEVICE/subsystem_vendor` > sub_device_id=`cat $PCI_DEVICE/subsystem_device` > PCI_SUBSYS_ID="${sub_vendor_id#0x}:${sub_device_id#0x}" >- /sbin/hotplug pci >+ >+ # use agent from /proc/sys/kernel/hotplug >+ # or some machines will end up firing >+ # hotplug events all the time consuming >+ # most of the systems ressources >+ # >+ # -- Andre Lammel <andre.lammel@swipe.de> >+ >+ local agent=$(cat /proc/sys/kernel/hotplug) >+ ${agent} pci > done > fi > else
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 80705
:
50324
|
50335