m0ar fizax

This commit is contained in:
2025-08-18 20:03:02 -06:00
parent 7096cf2820
commit 1187567c29
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -30,14 +30,14 @@ COUNTER=0
devarr=()
for line in $(dmesg | tail -50 | grep -o -E "tty[A-Z]{3}[0-9]{0,2}" | sort -u); do
echo -e "$COUNTER /dev/$line"
devarr+=("/dev/$line")
devarr[$COUNTER]="/dev/$line"
COUNTER=$((COUNTER+1))
done
if [ $COUNTER -gt 0 ]; then
echo -e "\nEnter TTY Number You'd Like:"
read tty
ttyselect=$devarr[$tty]
ttyselect=${devarr[$tty]}
else
echo -e "\nNo Serial Devices Found, Select one later with 'changeport'\n"
fi