updatansts

This commit is contained in:
2024-11-12 04:31:08 -07:00
parent f8999b2caa
commit cc3b4417d9
19 changed files with 68 additions and 74 deletions
-16
View File
@@ -1,16 +0,0 @@
echo "\nChanging ESPPORT\n"
echo "TTY devices found in dmesg:"
COUNTER=0
devarr=()
for line in $(dmesg | tail -50 | grep -o -E "tty[A-Z]{3}[0-9]{0,2}" | sort -u); do
echo "$COUNTER /dev/$line"
devarr+=("/dev/$line")
COUNTER=$((COUNTER+1))
done
echo "\nEnter TTY Number You'd Like:"
read tty
ttyselect=$devarr[(($tty+1))]
export ESPPORT="${ttyselect}"
echo "\nESPPORT set to ${ESPPORT}\n"
echo "\nall done :3\n"