[gobolinux-users] wlan network configuration
Jonas Karlsson
jonka750 at student.liu.se
Tue Jan 22 21:45:43 NZDT 2008
2008/1/22, Cavva <cavallieri.carlo at gmail.com>:
> First... Hi all;
> I'm moving my first steps with gobolinux and i'm not a "skilled linux user",
> so be prepared for a lot (sometimes) stupid question :)
>
> Now the question:
>
> thanks to the RT73 Recipe now I can use my USB WiFi dongle, but i
> don't know how/what write in the /S/S/NetworkOptions file
> (i need to write all the iwconfig & iwpriv stuff)
>
> on my previous system (Debian) i've used something like this:
>
> # Sitecom wireless dongle
> auto rausb0
> iface rausb0 inet dhcp
> pre-up ifconfig rausb0 up
> pre-up iwconfig rausb0 essid "******"
> pre-up iwconfig rausb0 mode Managed
> pre-up iwpriv rausb0 set AuthMode=WPAPSK
> pre-up iwpriv rausb0 set EncrypType=TKIP
> pre-up iwpriv rausb0 set WPAPSK="*********"
> pre-up ifconfig rausb0 up
>
> But on gobolinux how can i do this?
I have never used it myself, but there are PreUp and PostDown hooks
implemented in NetworkOptions. Just put define PreUp in
/System/Settings/NetworkOptions like below (if your device name is
rausb0):
function rausb0_PreUp() {
echo "Enabling rausb0, please wait..."
ifconfig rausb0 up
iwconfig rausb0 essid "******"
iwconfig rausb0 mode Managed
iwpriv rausb0 set AuthMode=WPAPSK
iwpriv rausb0 set EncrypType=TKIP
iwpriv rausb0 set WPAPSK="*********"
ifconfig rausb0 up
}
The PostDown function is then logically called rausb0_PostDown and can
be used the same way.
--
/Jonas
More information about the gobolinux-users
mailing list