# HG changeset patch # User Rohit Joshi # Date 1266225223 0 # Node ID 3e13b3a30ae56ffd9d06711712ecb191eebc22b1 # Parent a984593d012196ebed3c90768a0ce1b22c2ad528 network.sh: WPA2-PSK and static ip (thanks Arnaud) diff -r a984593d0121 -r 3e13b3a30ae5 etc/init.d/network.sh --- a/etc/init.d/network.sh Tue Feb 02 22:50:39 2010 +0100 +++ b/etc/init.d/network.sh Mon Feb 15 09:13:43 2010 +0000 @@ -89,7 +89,7 @@ network={ ssid="$WIFI_ESSID" scan_ssid=1 - proto=WPA + proto=WPA RSN key_mgmt=WPA-PSK psk="$WIFI_KEY" priority=5 @@ -151,6 +151,8 @@ echo "Configuring static IP on $INTERFACE: $IP..." /sbin/ifconfig $INTERFACE $IP netmask $NETMASK up /sbin/route add default gateway $GATEWAY + # Dirty trick: wpa_supplicant waits for wpa_cli + wpa_cli -B # Multi-DNS server in $DNS_SERVER. /bin/mv /etc/resolv.conf /tmp/resolv.conf.$$ for NS in $DNS_SERVER