[gobolinux-users] wlan network configuration

Cavva cavallieri.carlo at gmail.com
Wed Jan 23 13:18:55 NZDT 2008


Great, PreUp() gets the job done.

here's my final Network Options

NetworkInterfacesOnBoot=(
   lo
)
#
# localhost
#
lo_IP=127.0.0.1
lo_Netmask=255.0.0.0

#
# wlan0
#
wlan0_IP=192.168.1.3
wlan0_Netmask=255.255.255.0
wlan0_Broadcast=192.168.1.255

function wlan0_PreUp() {
    echo "Enabling wlan0, please wait..."
    ifconfig wlan0 up
    iwconfig wlan0 essid "*******"
    iwconfig wlan0 mode Managed
    iwpriv wlan0 set AuthMode=WPAPSK
    iwpriv wlan0 set EncrypType=TKIP
    iwpriv wlan0 set WPAPSK="*******"
}

Gateway=192.168.1.1
GatewayInterface=wlan0


2008/1/22, Daniele Maccari <gobo.users at gmail.com>:
> Jonas Karlsson wrote:
> > 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.
> >
> >
> I can assure that the PreUp and PostDown functions work as expected (at
> least with wpa_supplicant, maybe you could try it too).
>
> Bye
> _______________________________________________
> gobolinux-users mailing list
> gobolinux-users at lists.gobolinux.org
> http://lists.gobolinux.org/mailman/listinfo/gobolinux-users
>


More information about the gobolinux-users mailing list