View previous topic :: View next topic |
Author |
Message |
nivw Apprentice
Joined: 09 Nov 2005 Posts: 261
|
Posted: Mon Oct 19, 2009 1:55 pm Post subject: how to fix thi init script? |
|
|
Hi all,
My pc acts as a "home router" so pcs in my lan can access the internet.
I got an ethernet card (eth1) that connects to wired lan and a wifi card.
I use dnsmasq to run the dhcp for both internel network cards.
I want the dnsmasq service to start working after net.eth1 and net.ra0 start.
so I this is how /etc/init.d/dnsmasq starts :
Quote: |
depend() {
provide dns
need localmount
use net.eth1 hostapd
after bootmisc
}
|
the ehternet card is connected to a switch. if I power down the switch , eth1 goes down, but it causes the dnsmasq service to be stopped as well, thus a laptop tring to connect to the wifi card can't get dhcp.
How to solve this?
Niv |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Mon Oct 19, 2009 4:35 pm Post subject: |
|
|
Moved from Portage & Programming to Networking & Security.
better off here _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
|