View previous topic :: View next topic |
Author |
Message |
sall Guru
Joined: 08 Jun 2008 Posts: 314 Location: WV, USA
|
Posted: Sun Jan 25, 2009 6:48 am Post subject: setpci at boot help (SOLVED) |
|
|
I need to have the below to be added somewhere to be executed when gentoo boots so I can make use of my card reader. I'm not sure where to place this at to run at boot. Thanks in advance!
Quote: |
setpci -s 07:06.2 4c.b=0x02
|
_________________ Sall
* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4
Last edited by sall on Tue Feb 17, 2009 8:05 pm; edited 1 time in total |
|
Back to top |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Sun Jan 25, 2009 9:37 am Post subject: |
|
|
Inside /etc/conf.d/local.start (it would be executed at the very end of booting sequence - is that what you want?) _________________ Microsoft is not the answer, Microsoft is the question, the answer is no. |
|
Back to top |
|
|
sall Guru
Joined: 08 Jun 2008 Posts: 314 Location: WV, USA
|
Posted: Sun Jan 25, 2009 6:36 pm Post subject: |
|
|
The file /etc/conf.d/local.start says:
Quote: |
# /etc/conf.d/local.start
# This is a good place to load any misc programs
# on startup (use &>/dev/null to hide output)
|
Is it safe to put this pci command in this file? It says a good place to load MISC PROGRAMS, nothing about commands? _________________ Sall
* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4 |
|
Back to top |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Sun Jan 25, 2009 11:45 pm Post subject: |
|
|
What do you mean 'safe'?
If it is ok to start it as root at the very end of booting - then yes, it is as safe as logging in as root and starting it manually.
How do you define the difference between 'misc programs' and 'commands'?
'ls' is a command or program? What about 'time'? _________________ Microsoft is not the answer, Microsoft is the question, the answer is no. |
|
Back to top |
|
|
sall Guru
Joined: 08 Jun 2008 Posts: 314 Location: WV, USA
|
Posted: Mon Jan 26, 2009 4:55 am Post subject: |
|
|
haha good point. I took your advice worked like a charm. I also put in my network configuration because i have to modprobe -r several things and bring them back up to start my wireless. _________________ Sall
* AMD Turion(tm) 64 Mobile Technology ML-32
* 1Gb RAM
* 2.6.27-gentoo-r8 x86_64
* Xfce4 |
|
Back to top |
|
|
smerf l33t
Joined: 06 Nov 2004 Posts: 778 Location: Polska
|
Posted: Mon Jan 26, 2009 5:04 pm Post subject: |
|
|
If you want to run something while bringing net interfaces
up/down consider using preup/predown/postup/postdown
functions (see /etc/conf.d/net.example for details)
I know, that for wireless things may get a bit more complicated _________________ Microsoft is not the answer, Microsoft is the question, the answer is no. |
|
Back to top |
|
|
|