soime stuffss

This commit is contained in:
2025-04-30 11:19:15 -06:00
parent 5396eb26ba
commit fbc2031e91
3 changed files with 0 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
subprocess() {
echo -e "\nChanging ESPPORT\n"
echo -e "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 -e "\nEnter TTY Number You'd Like:"
read tty
sel=$tty+1
eval "$1=$devarr[$sel]"
return 0
}
ret=''
subprocess ret
export ESPPORT=$ret
echo -e "\nESPPORT set to $ESPPORT\n"
echo -e "\nAll done :3\n"