mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 03:07:48 +00:00
Bruno Fontes
2964dc1404
Again, I don't need to keep track of the changes. Just a matter of having them here.
5 lines
191 B
Bash
Executable File
5 lines
191 B
Bash
Executable File
#/bin/sh
|
|
|
|
dongleWifi=$(ip link | grep wlp | grep DOWN | awk '{ print $2 }' | tr -d :)
|
|
[ "$dongleWifi" ] && wpa_supplicant -B -i "$dongleWifi" -c /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
|