View previous topic :: View next topic |
Author |
Message |
cybertron n00b
Joined: 30 Jan 2004 Posts: 65 Location: Sweden
|
Posted: Sat Jan 31, 2004 1:09 pm Post subject: Is it possible to create automatic commands? |
|
|
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 |
|
|
eeyrjmr n00b
Joined: 17 Nov 2003 Posts: 38
|
Posted: Sat Jan 31, 2004 1:28 pm Post subject: |
|
|
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 |
|
|
Sefthuko n00b
Joined: 11 Jun 2003 Posts: 64
|
Posted: Sat Jan 31, 2004 1:51 pm Post subject: |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Fri Feb 06, 2004 10:30 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|