UDEV e connessione automatica wireless

Postate qui per tutte le discussioni legate a Linux in generale.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Gnu/Linux in genere, se l'argomento è specifico alla Slackware usate uno dei forum Slackware o Slackware64.
3) Leggere attentamente le risposte ricevute
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Avatar utente
anycolouryoulike
Packager
Packager
Messaggi: 1158
Iscritto il: ven 10 ago 2007, 0:00
Slackware: 12.2
Kernel: 2.6.34.8
Desktop: KDE 3.5.10

UDEV e connessione automatica wireless

Messaggio da anycolouryoulike »

È possibile fare in modo che quando collego la pennina USB vengano eseguiti automaticamente tutti i comandi per connetterla (messi in un apposito script)?
Grazie

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: UDEV e connessione automatica wireless

Messaggio da conraid »

anycolouryoulike ha scritto:È possibile fare in modo che quando collego la pennina USB vengano eseguiti automaticamente tutti i comandi per connetterla (messi in un apposito script)?
Grazie
configura bene rc.inet1.conf e wpa_supplicant.conf (se usi wpa) e lo fa da solo la 12.1

p.s.
o meglio, mi sa che solo usando wpa funzioni, visto che è da quando wpa_supplicant è compilato con hal che funziona questa cosa

Avatar utente
anycolouryoulike
Packager
Packager
Messaggi: 1158
Iscritto il: ven 10 ago 2007, 0:00
Slackware: 12.2
Kernel: 2.6.34.8
Desktop: KDE 3.5.10

Re: UDEV e connessione automatica wireless

Messaggio da anycolouryoulike »

conraid ha scritto:p.s.
o meglio, mi sa che solo usando wpa funzioni, visto che è da quando wpa_supplicant è compilato con hal che funziona questa cosa
Ecco perché...
Non c'è un altro modo che funzioni anche con una rete non cifrata?

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: UDEV e connessione automatica wireless

Messaggio da conraid »

anycolouryoulike ha scritto:
conraid ha scritto:p.s.
o meglio, mi sa che solo usando wpa funzioni, visto che è da quando wpa_supplicant è compilato con hal che funziona questa cosa
Ecco perché...
Non c'è un altro modo che funzioni anche con una rete non cifrata?
Non ho mai guardato le regole di hal, ma penso che una regola di UDEV che lanci uno script, o anche il solo "rc.inet1 wlan0_start" per esempio tu possa farlo

Avatar utente
anycolouryoulike
Packager
Packager
Messaggi: 1158
Iscritto il: ven 10 ago 2007, 0:00
Slackware: 12.2
Kernel: 2.6.34.8
Desktop: KDE 3.5.10

Re: UDEV e connessione automatica wireless

Messaggio da anycolouryoulike »

Cioé più o meno cosa dovrei fare?

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: UDEV e connessione automatica wireless

Messaggio da conraid »

Per esempio per il bluetooth ci sono regole simili a questa:

Codice: Seleziona tutto

SUBSYSTEM=="tty", BUS=="pcmcia", SYSFS{prod_id1}=="CF CARD", SYSFS{prod_id2}=="GENERIC", ENV{HCIOPTS}="$sysfs{manf_id},$sysfs{card_id}", RUN+="bluetooth_serial"
tu trovi l'identificativi della tua chiavetta (cerca nel forum, se ne parlò molto) con udevinfo -a -n /dev/XXX e poi prova a mettere
RUN+="/etc/rc.d/rc.inet1 wlan0_start"

Se è identificata come wlan0

altrimenti creati uno script apposito

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: UDEV e connessione automatica wireless

Messaggio da sya54M »

forse non ho capito bene la questione però se ti connetti sempre alla stessa rete basta che configuri una volta rc.inet1.conf e la pennetta wifi manterrà sempre le stesse impostazioni senza fare nessun altra configurazione (tantomeno ad hal o udev)

se poi vuoi che si configuri da sola per qualunque rete diversa che possa essere rilevata, ci sono dei comodi programmi grafici che lo fanno solo selezionando la rete dal site survey, proprio come accade su windows.
un esempio è rutilt.

Avatar utente
anycolouryoulike
Packager
Packager
Messaggi: 1158
Iscritto il: ven 10 ago 2007, 0:00
Slackware: 12.2
Kernel: 2.6.34.8
Desktop: KDE 3.5.10

Re: UDEV e connessione automatica wireless

Messaggio da anycolouryoulike »

Il device credo di averlo trovato:

Codice: Seleziona tutto

# udevinfo -a -p /sys/bus/usb/devices/1-2

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:14.0/usb1/1-2':
    KERNEL=="1-2"
    SUBSYSTEM=="usb"
    DRIVER=="usb"
    ATTR{dev}=="189:10"
    ATTR{configuration}=="Wireless Network Card"
    ATTR{bNumInterfaces}==" 1"
    ATTR{bConfigurationValue}=="1"
    ATTR{bmAttributes}=="80"
    ATTR{bMaxPower}=="500mA"
    ATTR{urbnum}=="5114"
    ATTR{idVendor}=="0846"
    ATTR{idProduct}=="6a00"
    ATTR{bcdDevice}=="0100"
    ATTR{bDeviceClass}=="00"
    ATTR{bDeviceSubClass}=="00"
    ATTR{bDeviceProtocol}=="00"
    ATTR{bNumConfigurations}=="1"
    ATTR{bMaxPacketSize0}=="64"
    ATTR{speed}=="12"
    ATTR{busnum}=="1"
    ATTR{devnum}=="11"
    ATTR{version}==" 1.10"
    ATTR{maxchild}=="0"
    ATTR{quirks}=="0x0"
    ATTR{authorized}=="1"
    ATTR{manufacturer}=="NETGEAR WG111v2"
    ATTR{product}=="NETGEAR WG111v2"
    ATTR{serial}=="00184DBCC119"

  looking at parent device '/devices/pci0000:00/0000:00:14.0/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{dev}=="189:0"
    ATTRS{configuration}==""
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bMaxPower}=="  0mA"
    ATTRS{urbnum}=="187"
    ATTRS{idVendor}=="0000"
    ATTRS{idProduct}=="0000"
    ATTRS{bcdDevice}=="0206"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{speed}=="12"
    ATTRS{busnum}=="1"
    ATTRS{devnum}=="1"
    ATTRS{version}==" 1.10"
    ATTRS{maxchild}=="2"
    ATTRS{quirks}=="0x0"
    ATTRS{authorized}=="1"
    ATTRS{manufacturer}=="Linux 2.6.24.5 ohci_hcd"
    ATTRS{product}=="OHCI Host Controller"
    ATTRS{serial}=="0000:00:14.0"
    ATTRS{authorized_default}=="1"

  looking at parent device '/devices/pci0000:00/0000:00:14.0':
    KERNELS=="0000:00:14.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="ohci_hcd"
    ATTRS{vendor}=="0x10b9"
    ATTRS{device}=="0x5237"
    ATTRS{subsystem_vendor}=="0x1025"
    ATTRS{subsystem_device}=="0x1019"
    ATTRS{class}=="0x0c0310"
    ATTRS{irq}=="11"
    ATTRS{local_cpus}=="1"
    ATTRS{modalias}=="pci:v000010B9d00005237sv00001025sd00001019bc0Csc03i10"
    ATTRS{enable}=="1"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
Ho fatto questa regola:

Codice: Seleziona tutto

# cat /etc/udev/rules.d/99-wireless.rules 
SUBSYSTEM=="usb", DRIVER=="usb", ATTR{configuration}=="Wireless Network Card", RUN+="/etc/rc.d/rc.local"
Ma non funziona.
Dove sbaglio?

Avatar utente
anycolouryoulike
Packager
Packager
Messaggi: 1158
Iscritto il: ven 10 ago 2007, 0:00
Slackware: 12.2
Kernel: 2.6.34.8
Desktop: KDE 3.5.10

Re: UDEV e connessione automatica wireless

Messaggio da anycolouryoulike »

sya54M ha scritto:forse non ho capito bene la questione però se ti connetti sempre alla stessa rete basta che configuri una volta rc.inet1.conf e la pennetta wifi manterrà sempre le stesse impostazioni senza fare nessun altra configurazione (tantomeno ad hal o udev)

se poi vuoi che si configuri da sola per qualunque rete diversa che possa essere rilevata, ci sono dei comodi programmi grafici che lo fanno solo selezionando la rete dal site survey, proprio come accade su windows.
un esempio è rutilt.
Questo /etc/rc.d/rc.inet1 non riesco proprio a farlo funzionare, anche se mi sembra di aver configurato tutto a dovere:

Codice: Seleziona tutto

# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IFNAME[0]="wlan0"
IPADDR[0]="192.168.0.3"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]="no"
DHCP_HOSTNAME[0]=""
WLAN_ESSID[0]=NETGEAR
WLAN_MODE[0]="MANAGED"
WLAN_RATE[0]="5.5M"

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.0.1"

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP=""

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your info.  (You may not need all of these for your wireless network)
#IFNAME[4]=""
#IPADDR[4]=""
#NETMASK[4]=""
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="auto"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name nstead of
                                # the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR         # Here, you can override _any_ parameter
                                # defined in rc.wireless.conf, by prepending
                                # 'WLAN_' to the parameter's name. Useful for
                                # those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (separated with the pipe (|)
                                # character, see the example).
Invece rc.local funziona:

Codice: Seleziona tutto

#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

/sbin/ifconfig wlan0 192.168.0.3 up
/sbin/iwlist wlan0 scanning > /dev/null
/sbin/iwconfig wlan0 essid NETGEAR rate 5.5M
/sbin/route add default gw 192.168.0.1

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: UDEV e connessione automatica wireless

Messaggio da sya54M »

non capisco perchè hai usato la sezione per la ethernet invece di decommentare semplicemente quelle che gia cerano per il wifi, comunque, se non usi il dhcp non metterle proprio le stringhe relative al dhcp.

questa è la parte del wifi sul mio file e funziona perfettamente:

Codice: Seleziona tutto

IFNAME[4]="wlan0"
IPADDR[4]="182.168.5.86"
NETMASK[4]="255.255.255.0"
WLAN_ESSID[4]=BARRIER05
WLAN_MODE[4]=Ad-hoc
WLAN_RATE[4]="54M auto"
WLAN_CHANNEL[4]="13"
WLAN_IWPRIV[4]="set AuthMode=WPANONE | set EncrypType=TKIP | set WPAPSK=* | set WirelessMode=0 | set AdhocOfdm=1 | set TxBurst=1 | set TurboRate=1"
la mia è una connessione ad-hoc, nel tuo caso WLAN_IWPRIV non è indispensabile e sarebbe diversa se vorresti usarla.

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: UDEV e connessione automatica wireless

Messaggio da conraid »

sya54M ha scritto:forse non ho capito bene la questione però se ti connetti sempre alla stessa rete basta che configuri una volta rc.inet1.conf e la pennetta wifi manterrà sempre le stesse impostazioni senza fare nessun altra configurazione (tantomeno ad hal o udev)
Da quel che ho capito lui vuole che si configuri quando il sistema riconosce la chiavetta.

@anycolouryoulike
dimmi se sbaglio.

rc.local però è il posto meno adesso, fai uno script apposito, altrimenti quando non c'è la chiavetta che fai?

Per la regola usa magari ATTR{serial}=="00184DBCC119" e mettilo verso 50, se non a 00
lanciarlo per ultimo magari è preceduto da altro
Controlla anche le regole della rete, ci dovrebbe essere una voce all'interno.
Insomma, fai alcune prove, e magari aspetta qualcuno più esperto in udev, io ogni volta ci sbatto la testa

Avatar utente
sya54M
Master
Master
Messaggi: 1665
Iscritto il: mer 6 giu 2007, 14:44
Nome Cognome: Andrea Peluso
Slackware: 64-current
Kernel: ultimo
Desktop: KDE
Località: (Salerno)
Contatta:

Re: UDEV e connessione automatica wireless

Messaggio da sya54M »

conraid ha scritto:
sya54M ha scritto:forse non ho capito bene la questione però se ti connetti sempre alla stessa rete basta che configuri una volta rc.inet1.conf e la pennetta wifi manterrà sempre le stesse impostazioni senza fare nessun altra configurazione (tantomeno ad hal o udev)
Da quel che ho capito lui vuole che si configuri quando il sistema riconosce la chiavetta.

@anycolouryoulike
dimmi se sbaglio.

rc.local però è il posto meno adesso, fai uno script apposito, altrimenti quando non c'è la chiavetta che fai?

Per la regola usa magari ATTR{serial}=="00184DBCC119" e mettilo verso 50, se non a 00
lanciarlo per ultimo magari è preceduto da altro
Controlla anche le regole della rete, ci dovrebbe essere una voce all'interno.
Insomma, fai alcune prove, e magari aspetta qualcuno più esperto in udev, io ogni volta ci sbatto la testa
funziona sempre, io in qualunque momento collego la penneta, questa prende le giuste impostazioni da tale file. non ho toccato nessuna regola di udev.

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: UDEV e connessione automatica wireless

Messaggio da conraid »

sya54M ha scritto: funziona sempre, io in qualunque momento collego la penneta, questa prende le giuste impostazioni da tale file. non ho toccato nessuna regola di udev.
Anche a me, come ho detto sopra. Ma siccome ricordo che in current iniziò a funzionare così da quando compilarono (metto il plurale perché la parte wireless è gestita da alienbon) wpa_supplicant con il supporto ad hal, pensavo fosse per quello. Non ho mai provato senza WPA

Avatar utente
conraid
Staff
Staff
Messaggi: 13631
Iscritto il: gio 14 lug 2005, 0:00
Nome Cognome: Corrado Franco
Slackware: current64
Desktop: kde
Località: Livorno
Contatta:

Re: UDEV e connessione automatica wireless

Messaggio da conraid »

Se continua a non andarti (il consiglio di usare la sezione wireless in rc.inet1.conf è giusto) prova a vedere il file 70-persistent-net.rules

Dovresti avere una riga simile a questa

Codice: Seleziona tutto

# USB device 0x083a:0x4505 (zd1211rw)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:xx:f7:ee:xx:60", ATTR{type}=="1", NAME="wlan0"
Prova a fare una cosa tipo

Codice: Seleziona tutto

# USB device 0x083a:0x4505 (zd1211rw)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:xx:f7:ee:fbxx60", ATTR{type}=="1", NAME="wlan0", RUN+="tuoscript"

p.s.
tra l'altro io in rc.inet1.conf ho solamente queste righe (riguardo il wifi)

Codice: Seleziona tutto

 IFNAME[4]="wlan0"
 USE_DHCP[4]="yes"
 DHCP_KEEPRESOLV[4]="yes"
 WLAN_WPA[4]="wpa_supplicant"

Avatar utente
anycolouryoulike
Packager
Packager
Messaggi: 1158
Iscritto il: ven 10 ago 2007, 0:00
Slackware: 12.2
Kernel: 2.6.34.8
Desktop: KDE 3.5.10

Re: UDEV e connessione automatica wireless

Messaggio da anycolouryoulike »

Stacco e riattacco la pennina:

Codice: Seleziona tutto

usb 1-1: USB disconnect, address 9
usb 1-2: new full speed USB device using ohci_hcd and address 10
usb 1-2: configuration #1 chosen from 1 choice
phy3: Selected rate control algorithm 'simple'
phy3: hwaddr 00:18:4d:bc:c1:19, rtl8187 V1 + rtl8225z2
Lancio /etc/rc.d/rc.inet1 restart e si aggiungono:

Codice: Seleziona tutto

ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
Cosa saranno mai quegli errori?
Questo è l'attuale rc.inet1.conf:

Codice: Seleziona tutto

# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
GATEWAY="192.168.0.1"

# Change this to "yes" for debugging output to stdout.  Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your data.  (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
IPADDR[4]="192.168.0.3"
NETMASK[4]="255.255.255.0"
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_ESSID[4]=NETGEAR
#WLAN_MODE[4]=Managed
WLAN_RATE[4]="5.5M"
#WLAN_CHANNEL[4]="auto"
#WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="wext"
#WLAN_WPAWAIT[4]=30

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0"              # Use a different interface name instead of
                                # the default 'eth4'
#IFNAME[4]="eth0:1"             # Set up an IP alias.
#HWADDR[4]="00:01:23:45:67:89"  # Overrule the card's hardware MAC address
#MTU[4]=""                      # The default MTU is 1500, but you might need
                                # 1360 when you use NAT'ed IPSec traffic.
#DHCP_TIMEOUT[4]=15             # The default timeout for the DHCP client to
                                # wait for server resonse is 30 seconds, but
                                # you might want a shorter wait.
#DHCP_KEEPRESOLV[4]="yes"       # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes"          # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes"           # If you don't want the DHCP server to change
                                # your default gateway
#DHCP_IPADDR[4]=""              # Request a specific IP address from the DHCP
                                # server
#WLAN_ESSID[4]=DARKSTAR         # An example of how you can override _any_
                                # parameter defined in rc.wireless.conf, by
                                # prepending 'WLAN_' to the parameter's name.
                                # Useful with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
                                # Some drivers require a private ioctl to be
                                # set through the iwpriv command. If more than
                                # one is required, you can place them in the
                                # IWPRIV parameter (separated with the pipe (|)
                                # character, see the example).
#WLAN_WPA[4]="wpa_supplicant"   # Run wpa_supplicant for WPA support
#WLAN_WPADRIVER[4]="ndiswrapper"# Tell wpa_supplicant to specifically use the
                                # ndiswrapper driver (if you leave this empty
                                # the 'wext' driver is used by default)
#WLAN_WPAWAIT[4]=30             # In case it takes long for the WPA association
                                # to finish, you can increase the wait time
                                # (defaults to 10 seconds)

Rispondi