From: James Michael Fultz on
* Magnate <not(a)receiving.here>:
> Hi all,
>
> The behaviour I want for my wlan0 interface is this:
>
> if (SSID == "home")
> iface wlan0 inet static
> address 192.168.1.17
> network 192.168.0.0
> netmask 255.255.0.0
> broadcast 192.168.255.255
> gateway 192.168.1.12
> else
> iface wlan0 inet dhcp
> pre-up
> wpasupplicant -B -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
>
> ... but I can't find how to make this happen. Apologies if this is somewhere
> on the net - I have looked extensively, but clearly am not using the right
> search terms.

guessnet allows for such conditional configurations via mapping stanzas.