Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is it possible to create automatic commands?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
cybertron
n00b
n00b


Joined: 30 Jan 2004
Posts: 65
Location: Sweden

PostPosted: Sat Jan 31, 2004 1:09 pm    Post subject: Is it possible to create automatic commands? Reply with quote

Hi!
Just wondering if ithis is possible:

I want to start a couple of lines of code

-------------------------------------------------------------------------------------------

/usr/local/bin/loaddriver 14e4 4320 /usr/local/share/ndiswrapper/*.sys /usr/local/share/ndiswrapper/*.inf

iwconfig eth1 mode managed essid any
dhcpcd eth1

---------------------------------------------------------------------------------------------
How would I do this? I have tried to put it in the "aliases" file in /etc/modules.d/ but that doesn´t work..

/CyberTron
_________________
Gentoo using ~x86 branch
computer: Dell Inspiron 8500
everything working except standby/suspend
for newbie configs for gentoo/slackware: http://www.linuxportalen.info
Back to top
View user's profile Send private message
eeyrjmr
n00b
n00b


Joined: 17 Nov 2003
Posts: 38

PostPosted: Sat Jan 31, 2004 1:28 pm    Post subject: Reply with quote

do you mean

ifconfig

instead of iwconfig

otherwise just make a script file with all that in. Prolly a way of putting it in modules.d and all but cant think at the mo
Back to top
View user's profile Send private message
Sefthuko
n00b
n00b


Joined: 11 Jun 2003
Posts: 64

PostPosted: Sat Jan 31, 2004 1:51 pm    Post subject: Reply with quote

Actually, Styx, cybertron's right. iwconfig is a command for wireless cards.

A quick way to setup a run-on-boottime script is to add the local service on boot (I'm not sure if it's default or not, see if it is anyways):

Code:
rc-update add local default


The local service runs /etc/conf.d/local.start at start and /etc/conf.d/local.stop at stop. Feel free to insert your code in local.start.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Feb 06, 2004 10:30 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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