In order to connect I must use wpa supplicant.
So I've created a bash that does the following:
Code:
#!/bin/bash
sudo wpa_supplicant -w -i eth0 -D wired -c /etc/wpa_supplicant/wpa_supplicant.conf &
sudo dhclient
But I was wondering if there is a better way to do the above thing?