J'essaye d'automatiser ma connexion wifi avec netcfg et je rencontre quelques problèmes :
- Je ne suis pas connecté automatiquement au démarrage (je veux dire que Firefox n'arrive à afficher aucun site).
- Si j'essaye d'activer la connexion par "netcfg MonWifi' il me répond que celui-ci est déjà activé.
- Si ensuite j'appelle wifi-menu pour sélectionner MonWifi, ou si je le redémarre avec 'netcfg -r MonWifi' alors là ça fonctionne (la preuve étant que je peux écrire sur ce forum

Exemple :
Code : Tout sélectionner
# netcfg MonWifi
> MonWifi already connected
# wifi-menu
:: Scanning for networks [DONE]
┌────────────────────────────────────────────────┐
│ Select the network you wish to use │
│ Flags description: │
│ * - handmade profile present │
│ + - automatically generated profile present │
│ - - no profile present │
│ ! - active connection present │
│ ┌────────────────────────────────────────────┐ │
│ │ Liste de réseaux wifi dont le mien │ │
│ │ Je sélectionne le mien │ │
│ └────↓(+)────────────────────────────84%─────┘ │
├────────────────────────────────────────────────┤
│ <Accepter> <Annuler > │
└────────────────────────────────────────────────┘
:: MonWifi down [DONE]
:: MonWifi up [DONE]
Code : Tout sélectionner
CONNECTION="wireless"
DESCRIPTION="Bla-bla"
INTERFACE="wlan0"
SECURITY="wep"
ESSID="MaBox"
KEY="MaCleWep"
IP="dhcp"
Note : J'ai désinstallé wicd (que j'avais préalablement barré avec !wicd, mais ça ne suffisait pas).
Code : Tout sélectionner
# NETWORKING
# ----------
HOSTNAME="MaMachine"
interface=eth0
address=
netmask=
broadcast=
gateway=
NETWORK_PERSIST="no"
# DAEMONS
# -------
#
DAEMONS=(syslog-ng crond dbus !network net-profiles net-auto-wireless !wicd @ntpd slim)
Code : Tout sélectionner
[ 20.084069] wlan0: authenticate with xx:xx:xx:xx:xx:xx (try 1)
[ 20.086032] wlan0: authenticated
[ 20.089566] wlan0: associate with xx:xx:xx:xx:xx:xx (try 1)
[ 20.092035] wlan0: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x411 status=0 aid=1)
[ 20.092042] wlan0: associated
[ 20.092049] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 1
[ 20.092054] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 2
[ 20.093813] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 20.094069] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 3
[ 29.622771] wlan0: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (reason=3)
[ 29.636529] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 2
[ 29.636534] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 1
[ 29.636537] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 0
[ 29.650155] cfg80211: Calling CRDA to update world regulatory domain
[ 83.336515] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 87.233586] wlan0: authenticate with xx:xx:xx:xx:xx:xx (try 1)
[ 87.235692] wlan0: authenticated
[ 87.235791] wlan0: associate with xx:xx:xx:xx:xx:xx (try 1)
[ 87.239366] wlan0: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x411 status=0 aid=1)
[ 87.239371] wlan0: associated
[ 87.239376] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 1
[ 87.239379] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 2
[ 87.241232] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 87.242030] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 3
[ 95.368528] fuse init (API version 7.18)
[ 97.230296] wlan0: deauthenticating from xx:xx:xx:xx:xx:xx by local choice (reason=3)
[ 97.243406] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 2
[ 97.243411] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 1
[ 97.243414] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 0
[ 97.250045] cfg80211: Calling CRDA to update world regulatory domain
[ 98.426286] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 100.502899] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 106.099149] wlan0: authenticate with xx:xx:xx:xx:xx:xx (try 1)
[ 106.101059] wlan0: authenticated
[ 106.101171] wlan0: associate with xx:xx:xx:xx:xx:xx (try 1)
[ 106.103639] wlan0: RX AssocResp from xx:xx:xx:xx:xx:xx (capab=0x411 status=0 aid=1)
[ 106.103646] wlan0: associated
[ 106.103653] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 1
[ 106.103658] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 2
[ 106.105302] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 106.105791] wlan0: moving STA xx:xx:xx:xx:xx:xx to state 3
[ 117.043365] wlan0: no IPv6 routers present