dhclient with reconfigured SSID
Dirk-Willem van Gulik
dirkx at webweaving.org
Mon Jun 28 09:57:25 PDT 2004
On Mon, 28 Jun 2004, Stephan van Beerschoten wrote:
> Will this lock the ssid during reboots as well ? If not, that actually
> is what I am looking for.
Ah - ok - putting into /etc/r.conf
ifconfig_wi0="ssid foo"
will lock it during/after reboots; but kills the DHCP. Options are
- Do above but add
dhclietn wi0&
to your /etc/rc.local
- Leave ifconfig_wi0=DHCP in rc.conf
and do a 'man dhclient-script' and
accordingly create a
/etc/dhclient-enter-hooks
with the text
#!/bin/sh
ifconfig wi0 ssid f00
add 'if [ "x${interface}" = "xwi0" ]; then' ..'fi'
around it if you want it only to happen for wi0.
What the second option does is run an extra script early in the dhcp
cycle whcih sets your interface to the right ssid.
Dw
More information about the freebsd-questions
mailing list