10
9
I can connect to my WiFi out of the shell by doing:
nano wireless-wpa.conf
typing:
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="my_router_id"
scan_ssid=1
key_mgmt=WPA-PSK
psk="1234567890"
}
and doing:
ifconfig eth1 down
iwconfig eth1 mode Managed
ifconfig eth1 up
killall wpa_supplicant
wpa_supplicant -B -Dwext -i eth1 -c ./wireless-wpa.conf -dd
dhclient eth1
Pretty complicated.. Is there a possibility to connect to a WiFI via shell without the need of a wireless-wpa.conf?
Would having a script that wrote the .conf on the fly and established the network connection suffice? – Paul – 2011-09-29T05:58:49.100
Actually I was looking for a complete different solution, because I could write a bash script myself. – JohnnyFromBF – 2011-09-29T08:47:44.467