I just installed wpa_supplicant and got my wireless running - somewhat.
Whenever i start it
Code: Select all
enki bin # /etc/init.d/net.wlan0 start
* Starting wlan0
* Starting wpa_supplicant on wlan0 ... [ ok ]
* Starting wpa_cli on wlan0 ... [ ok ]
* Backgrounding ...
network there seem to be several units which act as DHCP servers
and in order to get the real one, i'd have to blacklist them.
When i now do
Code: Select all
dhcpcd -X 192.168.77.1 -X 192.168.0.1 wlan0
wlan0: dhcpcd already running on pid 13577 (/var/run/dhcpcd-wlan0.pid)
Code: Select all
enki bin # dhcpcd -x wlan0
wlan0: sending signal 15 to pid 21643
wlan0: waiting for pid 21643 to exit
enki bin # dhcpcd -X 192.168.77.1 -X 192.168.0.1 wlan0
wlan0: dhcpcd 4.0.13 starting
wlan0: broadcasting for a lease
wlan0: ignoring blacklisted server 192.168.77.1
wlan0: ignoring blacklisted server 192.168.0.1
wlan0: offered 192.168.1.61 from 192.168.1.1
wlan0: acknowledged 192.168.1.61 from 192.168.1.1
wlan0: checking 192.168.1.61 is available on attached networks
wlan0: leased 192.168.1.61 for 86400 seconds
Code: Select all
enki bin # /etc/init.d/net.eth0 start
* Starting eth0
* Bringing up eth0
* dhcp
* Running dhcpcd ...
eth0: dhcpcd 4.0.13 starting
eth0: broadcasting for a lease
eth0: offered 192.168.1.47 from 192.168.1.1
eth0: ignoring offer of 192.168.0.106 from 192.168.0.1
eth0: acknowledged 192.168.1.47 from 192.168.1.1
eth0: checking 192.168.1.47 is available on attached networks
eth0: ignoring offer of 192.168.77.2 from 192.168.77.1
eth0: leased 192.168.1.47 for 86400 seconds [ ok ]
* eth0 received address 192.168.1.47/24
that i haven't written anything about "192.168.1.1" or "192.168.77.1"
into any configuration...
I then wrote a script for switching to wireless:
Code: Select all
enki bin # cat doWireless
/etc/init.d/net.eth0 stop
/etc/init.d/net.wlan0 start
dhcpcd -x wlan0
dhcpcd -X 192.168.77.1 -X 192.168.0.1 wlan0
/etc/init.d/apache2 start
/etc/init.d/postgresql restartCode: Select all
enki bin # doWireless
* Stopping apache2 ...
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [ ok ]
* Unmounting network filesystems ... [ ok ]
* Stopping eth0
* Bringing down eth0
* Stopping dhcpcd on eth0 ... [ ok ]
* Shutting down eth0 ... [ ok ]
* WARNING: net.wlan0 has already been started.
wlan0: sending signal 15 to pid 24356
wlan0: waiting for pid 24356 to exit
wlan0: dhcpcd 4.0.13 starting
wlan0: broadcasting for a lease
wlan0: ignoring blacklisted server 192.168.0.1
wlan0: ignoring blacklisted server 192.168.77.1
wlan0: offered 192.168.1.61 from 192.168.1.1
wlan0: acknowledged 192.168.1.61 from 192.168.1.1
wlan0: checking 192.168.1.61 is available on attached networks
wlan0: leased 192.168.1.61 for 86400 seconds
* Starting eth0
* Bringing up eth0
* dhcp
* Running dhcpcd ...
eth0: dhcpcd 4.0.13 starting
eth0: waiting for carrier
eth0: timed out [ !! ]
So for some reason, apache2 starts eth0 and eth0 starts dhcpcd...
is there some configuration which defines these dependencies?
I would like to achieve:
- to start wlan0, such that it starts dhcpcd with blacklisting the bad servers, exactly as eth0 does
- to start apache2 after wlan0 has been started, without eth0 being started
Can anybody explain all this, and peraps tell me how i can acieve my two goals here?
Thank You
Jody


