[wireless wifi] et rc.conf (résolu)
Publié : jeu. 28 janv. 2010, 22:20
Bonjour à tous,
Il ya de fortes chances qu'une réponse a ma question soit déja donnée ... mais je ne trouve pas malgré de puissantes recherches !
Je souhaite automatiser le démarrage du wifi sans wicd ou autre interface graphique.
Le cryptage est wpa.
Manuellement cela fonctionne (la preuve : je suis ici
Mais comment placer le tout dans rc.conf ?
--------------------------------------------------------------------------------
Mon fichier /etc/wpa_supplicant.conf :
cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Pteridophyte"
scan_ssid=1
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group= CCMP TKIP
psk="on},U_ratatitata"
}
----------------------------------------------------------------------------------
Mon fichier ""profil" dans /etc/network.d/monwpaamoi
cat /etc/network.d/monwpaamoi
DESCRIPTION="Profil sans fil"
# Network Settings
INTERFACE="wlan0"
HOSTNAME=duduche
# Interface Settings (use IFOPTS="dhcp" for DHCP)
IFOPTS="192.168.0.96 netmask 255.255.255.0 broadcast 192.168.0.255"
GATEWAY=192.168.0.137
# DNS Settings (optional)
#DOMAIN=tweet.net
WIFI_WAIT=59 # seconds to wait for the wireless card to
# associate before bringing the interface up
USEWPA="yes" # start wpa_supplicant with the profile
WPAOPTS=""
----------------------------------------------------------------------------------
Un extrait de mon /etc/rc.conf
NETWORKS=(monwpaamoi)
DAEMONS=(syslog-ng hal network @net-profiles .......... )
---------------------------------------------------------------------------------
Mais cela ne fonctionne pas !!!
Maintenant ma méthode manuelle (qui, elle, fonctionne)
ifconfig wlan0 up
iwlist wlan0 scan
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
ifconfig wlan0 192.168.0.96 broadcast 192.168.0.255 up
route add default gw 192.168.0.137
Que me faut-il faire ? de + / de - ?
merci !
(j'ai tenté sur l'irc mais sans doute au mauvais moment ! pseudo=archenvrac)
Il ya de fortes chances qu'une réponse a ma question soit déja donnée ... mais je ne trouve pas malgré de puissantes recherches !
Je souhaite automatiser le démarrage du wifi sans wicd ou autre interface graphique.
Le cryptage est wpa.
Manuellement cela fonctionne (la preuve : je suis ici

Mais comment placer le tout dans rc.conf ?
--------------------------------------------------------------------------------
Mon fichier /etc/wpa_supplicant.conf :
cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="Pteridophyte"
scan_ssid=1
proto=WPA RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group= CCMP TKIP
psk="on},U_ratatitata"
}
----------------------------------------------------------------------------------
Mon fichier ""profil" dans /etc/network.d/monwpaamoi
cat /etc/network.d/monwpaamoi
DESCRIPTION="Profil sans fil"
# Network Settings
INTERFACE="wlan0"
HOSTNAME=duduche
# Interface Settings (use IFOPTS="dhcp" for DHCP)
IFOPTS="192.168.0.96 netmask 255.255.255.0 broadcast 192.168.0.255"
GATEWAY=192.168.0.137
# DNS Settings (optional)
#DOMAIN=tweet.net
WIFI_WAIT=59 # seconds to wait for the wireless card to
# associate before bringing the interface up
USEWPA="yes" # start wpa_supplicant with the profile
WPAOPTS=""
----------------------------------------------------------------------------------
Un extrait de mon /etc/rc.conf
NETWORKS=(monwpaamoi)
DAEMONS=(syslog-ng hal network @net-profiles .......... )
---------------------------------------------------------------------------------
Mais cela ne fonctionne pas !!!
Maintenant ma méthode manuelle (qui, elle, fonctionne)
ifconfig wlan0 up
iwlist wlan0 scan
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
ifconfig wlan0 192.168.0.96 broadcast 192.168.0.255 up
route add default gw 192.168.0.137
Que me faut-il faire ? de + / de - ?
merci !
(j'ai tenté sur l'irc mais sans doute au mauvais moment ! pseudo=archenvrac)