View previous topic :: View next topic |
Author |
Message |
LampiAo n00b

Joined: 09 Apr 2003 Posts: 8 Location: Salvador - Bahia - Brasil
|
Posted: Sat Apr 26, 2003 12:26 pm Post subject: Executando scripts quando inicia o linux |
|
|
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 |
|
 |
AngusYoung Retired Dev


Joined: 20 Dec 2002 Posts: 473 Location: Czech Republic
|
Posted: Sat Apr 26, 2003 7:51 pm Post subject: |
|
|
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:
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 |
|
 |
|