[wpa_auto] minimalistic roaming wifi daemon using wpa_supplicant

view story

https://bbs.archlinux.org – I've been using a minimal setup a friend handed to me:~/bin/wifi#! /bin/bash if [[ -n $(ls /var/run/wpa_supplicant 2>/dev/null) ]]; then echo "Already connected" else sudo wpa_supplicant -B -Dwext -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0 sudo wpa_cli -B -a /home/maca/bin/wpa_cli-action fi ~/bin/wpa_cli-action#! /bin/bash case $2 in CONNECTED) sudo dhcpcd -x >/dev/null sudo dhcpcd >/dev/null ;; esacAnd running the script from /etc/rc.localIt works flawlessly for me.     Maybe I can get some guidance here:Is (HowTos)