cat /root/wpa/MYWIFI.wpa # See /usr/doc/wpa_supplicant-0.7.3/wpa_supplicant.conf.sample # for many more options that you can use in this file. # This line enables the use of wpa_cli which is used by rc.wireless # if possible (to check for successful association) ctrl_interface=/var/run/wpa_supplicant # By default, only root (group 0) may use wpa_cli ctrl_interface_group=0 eapol_version=1 ap_scan=1 fast_reauth=1 #country=US # WPA protected network, supply your own ESSID and WPAPSK here: network={ scan_ssid=0 ssid="MYWIFI" proto=WPA RSN key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP WEP104 WEP40 psk="MYPASSWORD" priority=10 } cat /root/wpa/MYWIFI.sh ifconfig wlan0 up wpa_supplicant -c /root/wpa/MYWIFI.wpa -i wlan0 & ifconfig wlan0 192.168.1.123/24 route add default gw 192.168.1.1