Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
setpci at boot help (SOLVED)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Sun Jan 25, 2009 6:48 am    Post subject: setpci at boot help (SOLVED) Reply with quote

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
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Sun Jan 25, 2009 9:37 am    Post subject: Reply with quote

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
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Sun Jan 25, 2009 6:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Sun Jan 25, 2009 11:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
sall
Guru
Guru


Joined: 08 Jun 2008
Posts: 314
Location: WV, USA

PostPosted: Mon Jan 26, 2009 4:55 am    Post subject: Reply with quote

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
View user's profile Send private message
smerf
l33t
l33t


Joined: 06 Nov 2004
Posts: 778
Location: Polska

PostPosted: Mon Jan 26, 2009 5:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum