linuxShortcuts/Services/enableDongleWifi.sh
Bruno Fontes 2964dc1404 Generic updates on laptop
Again, I don't need to keep track of the changes. Just a matter of
having them here.
2021-12-24 11:01:28 -03:00

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