Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 116247 Details for
Bug 173347
sys-apps/pciutils - pciparm init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/init.d/pciparm-r1
pciparm (text/plain), 1.15 KB, created by
Federico Ferri (RETIRED)
on 2007-04-14 14:53:00 UTC
(
hide
)
Description:
/etc/init.d/pciparm-r1
Filename:
MIME Type:
Creator:
Federico Ferri (RETIRED)
Created:
2007-04-14 14:53:00 UTC
Size:
1.15 KB
patch
obsolete
>#!/sbin/runscript ># read this article to know what to do ># http://gentoo.org/doc/en/articles/hardware-stability-p2.xml#doc_chap3_pre2 > ># report bugs to: http://bugs.gentoo.org/show_bug.cgi?id=173347 > >depend() { > before bootmisc hdparm >} > >do_setpci() { > if [[ "$1" = "*:*" ]]; then > GLOB="global " > SWITCH="-d" > else > SPEC="for card $1 " > SWITCH="-s" > fi > > SPECID="$1" > shift > > ebegin "Setting ${GLOB}params ${SPEC}to $@" > setpci $SETPCI_OPT $SWITCH $SPECID $@ > eend $? > GLOB="" > SPEC="" > SPECID="" > SWITCH="" >} > >do_enum_pciid() { > # TODO: check if {7} is correct, ie. pci id are always in the form ab:cd.e > # or use a more elegant form, e.g. awk '{print $1}' > lspci | sed -e 's/^\([0-9a-f:.]\{7\}\).*$/\1/' >} > >start() { > if get_bootparam "nopciparm" ; then > ewarn "Skipping pciparm init as requested in kernel cmdline" > return 0 > fi > > SETPCI_OPT="" > if [[ "$VERBOSE" = "yes" ]]; then > SETPCI_OPT="$SETPCI_OPT -v" > fi > > if [[ -n "$PCIPARM_ALL" ]]; then > do_setpci "*:*" $PCIPARM_ALL > fi > > for pci_id in `do_enum_pciid`; do > PCIPARM=`echo PCIPARM_${pci_id} | sed -e's/[:.]/_/g'` > if [[ -n "${!PCIPARM}" ]]; then > do_setpci ${pci_id} ${!PCIPARM} > fi > done >}
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 Raw
Actions:
View
Attachments on
bug 173347
:
115443
|
115444
|
115475
|
116247
|
116248
|
124859
|
124861
|
167638
|
167962