Two small problems in network.sh |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: Two small problems in network.sh
- From: "Arnaud BONVALLET (dobby)" <dobby@xxxxxxxxxx>
- Date: Thu, 11 Feb 2010 03:05:51 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=GY75waFCdmxv7Ux3TsBiwQXq+d2uF31Nge7+bo4s4M0=; b=K+fmkzoA60d5DP9WQmvAwBETTNir0BWOOaXT6f+KuTrQ4hcFEnn197RHXh8EKllEM2 U4OX7KOybPCEdAHlHq0Fj+b5onDN4xJp5HHlTRzcpI+t8E7fX/KutY3l5nImvoVcEV8F ZPNRSL8ioHM3Dn5ps4uc76+2lIcbHRMoNaiWI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=edMfKfKsDGHNHd0QGvPVYLcS1HAq00wpPtkv0cUdkt5AurSGKZzVsvm4ra24+T/b1A vgCZRcSxyXf7cX4k9zZlN4lL/CaRrHnnwXZ405NN6QVWWg2TuwAKOnX0JXML4cgXDZXt 9ozek66oLOk/WJRdY2KkLSAOq5E92F2mXiMzk=
Hi all,
I just noticed two small problems with network.sh (slitaz-boot-scripts
3.2, http://mirror.slitaz.org/packages/cooking/slitaz-boot-scripts-3.2.tazpkg).
1- A problem with wifi authentification throught WPA2-PSK
2- A problem with a static IP configuration.
Here is the way I solved these:
1- Wifi authentification with WPA2-PSK :
The temporary configuration file for wpa_supplicant created by
/etc/init.d/network.sh define (on line 92) the parameter:
proto=WPA
which limits to an authentification through WPA-PSK. If the parameter
is not set, it defaults proto=WPA, RSN which allows WPA and WAP2
authentification (see /etc/wpa_supplicant.conf ligne 209).
So I removed the line 92.
2- When configuring the network with a static IP, the wifi card and
the access point are not associated since wpa_supplicant is waiting
for wpa_cli (lines 99 and 117): -W parameter.
A dirty trick could be to start wpa_cli, in the static_ip() function:
wpa_cli -B
I join a diff with the modifications.
Cheers,
Arnaud.
--- /etc/init.d/network.sh Sun Jan 10 22:58:59 2010
+++ network.sh Thu Jan 28 01:26:35 2010
@@ -89,7 +89,6 @@
network={
ssid="$WIFI_ESSID"
scan_ssid=1
- proto=WPA
key_mgmt=WPA-PSK
psk="$WIFI_KEY"
priority=5
@@ -151,6 +150,7 @@
echo "Configuring static IP on $INTERFACE: $IP..."
/sbin/ifconfig $INTERFACE $IP netmask $NETMASK up
/sbin/route add default gateway $GATEWAY
+ wpa_cli -B
# Multi-DNS server in $DNS_SERVER.
/bin/mv /etc/resolv.conf /tmp/resolv.conf.$$
for NS in $DNS_SERVER