slitaz-boot-scripts rev 194
network.sh: WPA2-PSK and static ip (thanks Arnaud)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Mon Feb 15 09:13:43 2010 +0000 (2010-02-15) |
parents | a984593d0121 |
children | 29d705b21621 |
files | etc/init.d/network.sh |
line diff
1.1 --- a/etc/init.d/network.sh Tue Feb 02 22:50:39 2010 +0100 1.2 +++ b/etc/init.d/network.sh Mon Feb 15 09:13:43 2010 +0000 1.3 @@ -89,7 +89,7 @@ 1.4 network={ 1.5 ssid="$WIFI_ESSID" 1.6 scan_ssid=1 1.7 - proto=WPA 1.8 + proto=WPA RSN 1.9 key_mgmt=WPA-PSK 1.10 psk="$WIFI_KEY" 1.11 priority=5 1.12 @@ -151,6 +151,8 @@ 1.13 echo "Configuring static IP on $INTERFACE: $IP..." 1.14 /sbin/ifconfig $INTERFACE $IP netmask $NETMASK up 1.15 /sbin/route add default gateway $GATEWAY 1.16 + # Dirty trick: wpa_supplicant waits for wpa_cli 1.17 + wpa_cli -B 1.18 # Multi-DNS server in $DNS_SERVER. 1.19 /bin/mv /etc/resolv.conf /tmp/resolv.conf.$$ 1.20 for NS in $DNS_SERVER