testiung for release 3

This commit is contained in:
2025-05-10 00:14:11 -06:00
parent 6837d0ecc9
commit 39a963d227
4 changed files with 40 additions and 21 deletions
+10 -5
View File
@@ -1,16 +1,21 @@
function subprocess() {
echo -e "\nChanging ESPPORT\n"
echo -e "TTY devices found in dmesg:"
echo -e "\nChecking for Serial Devices in dmesg\n"
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"
echo -e "$COUNTER /dev/$line"
devarr+=("/dev/$line")
COUNTER=$((COUNTER+1))
done
echo -e "\nEnter TTY Number You'd Like:"
read tty
if [ $COUNTER -gt 0 ]; then
echo -e "\nEnter TTY Number You'd Like:"
read tty
ttyselect=$devarr[(($tty+1))]
else
echo -e "\nNo Serial Devices Found, Select one later with 'changeport'\n"
fi
sel=$tty+1
eval "$1=$devarr[$sel]"