Added files to git repo

This commit is contained in:
Jean
2025-07-04 17:23:34 -04:00
parent 28264e542b
commit c531c40418
10 changed files with 1781 additions and 2 deletions

49
wifi.sh Executable file
View File

@ -0,0 +1,49 @@
#!/bin/bash
set -euo pipefail
# This could help with Fedora's DNS resolution:
#
# resolvectl status | grep 'Link' | sed -e 's|^.*(||g; s|).*||g' | while read -r INTERFACE; do resolvectl dns ${INTERFACE} 9.9.9.9; done && sleep 3 && nmcli device status | grep -v 'DEVICE' | grep -v 'lo' | sed -e 's| .*||g' | while read -r INTERFACE; do nmcli device disconnect ${INTERFACE}; sleep 1; nmcli device connect ${INTERFACE}; done
BASEDIR="$(dirname "${0}" | sed "s|^\.|${PWD}|")"
cat << EOF
#######################################
## ##
## $(cat "${BASEDIR}/title") Script ##
## ##
## Jean <jean@easthighnerd.net> ##
## ##
#######################################
#############
## ##
## Wi-Fi ##
## Setup ##
## ##
#############
EOF
nmcli radio wifi on
nmcli device wifi list
printf "Enter the SSID of the WiFi network you wish to connect to:\n"
read -r WIFI_NAME
nmcli --ask device wifi connect ${WIFI_NAME}
cat << EOF
Network configured
Press any key to return to the main menu
EOF
read -srn 1