Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Executando scripts quando inicia o linux
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
LampiAo
n00b
n00b


Joined: 09 Apr 2003
Posts: 8
Location: Salvador - Bahia - Brasil

PostPosted: Sat Apr 26, 2003 12:26 pm    Post subject: Executando scripts quando inicia o linux Reply with quote

Pessoal,

Tenho em meu computador duas placas de rede, eth0 = net, eth1 = local...
fiz um spript para fazer o compartilhamento da internet mas tenho que executar o comando.

Queria saber como inicalizar as placas de redes e como executar o script de compartilhamento na iniciacao do linux?
Back to top
View user's profile Send private message
AngusYoung
Retired Dev
Retired Dev


Joined: 20 Dec 2002
Posts: 473
Location: Czech Republic

PostPosted: Sat Apr 26, 2003 7:51 pm    Post subject: Reply with quote

Você pode colocar o comando dentro do arquivo:
Code:
/etc/conf.d/local.start


Quanto a inicializar as interfaces de rede, você tem que fazer o seguinte:
Abra o arquivo:

Code:
/etc/conf.d/net


E edite as linhas:
Code:
iface_eth0="10.0.0.3 broadcast 10.0.0.255 netmask 255.255.255.0"
iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"


Salve o arquivo e depois:
Code:
cp /etc/init.d/net.eth0 /etc/init.d/net.eth1
rc-update add net.eth1 default

_________________
My blog
Twitter
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese 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