On Friday 19 September 2008 22:01:48 Paul M wrote:
> 2008/9/19 Charles McEvoy <[EMAIL PROTECTED]>:
> >> Anyone got any idea?
> >
> > I use:
> > ifconfig usb0 down
>
> couldn't you use pre-up and post-up scripts in
> /etc/network/interfaces,something like this:
>
> # Wireless interfaces
> iface wlan0 inet dhcp
>         pre-up cardctl insert 1
>         post-down cardctl eject 1
>
> iface btoz inet dhcp
>         wireless_mode managed
>         wireless_essid BTOpenzone
>
> iface home inet static
>         wireless_mode ad-hoc
>         wireless_essid HOME
>         wireless_key1 nnnnnnnnnnnnnnnnnn
>         address a.b.c.d
>         network a.b.c.0
>         netmask 255.255.255.0
>         gateway a.b.c.1
>
> iface work inet dhcp
>         wireless_mode managed
>         wireless_essid WORK
>         wpa-conf /etc/wpa_supplicant.conf
>         wpa-driver hostap
>
> and then you just do "ifup wlan0=home" "ifup wlan0=work" etc?

Sounds great - I'll try it. I have used manual scripts like the ones I posted 
for many years (long pre-Angstrom) and I've got used to the minor 
inconvenience of firing them up by hand. I've always suspected there was a 
better way, though.
Charles

-- 
Dr Charles McEvoy
Ripon

_______________________________________________
Angstrom-distro-users mailing list
Angstrom-distro-users@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-users

Reply via email to