Fix port selection
This commit is contained in:
parent
837c10eb21
commit
32d3020421
4
setup.sh
4
setup.sh
@ -148,7 +148,9 @@ if [[ "$ARG_PORT" == 0 ]]; then
|
|||||||
while [ ! -f "${MANUAL_FILE}" ]; do
|
while [ ! -f "${MANUAL_FILE}" ]; do
|
||||||
MANUAL_FILE=$(dialog --backtitle "drwho@hackers.town" --title "Manual Device Selection" --inputbox "Enter Full Device File Path" 8 40 "${MANUAL_FILE}" 3>&1 1>&2 2>&3)
|
MANUAL_FILE=$(dialog --backtitle "drwho@hackers.town" --title "Manual Device Selection" --inputbox "Enter Full Device File Path" 8 40 "${MANUAL_FILE}" 3>&1 1>&2 2>&3)
|
||||||
done
|
done
|
||||||
DEVICE="/dev/serial/by-id/$MANUAL_FILE"
|
DEVICE="$MANUAL_FILE"
|
||||||
|
else
|
||||||
|
DEVICE="/dev/serial/by-id/$DEVICE"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo.ICyan "Using passed serial port"
|
echo.ICyan "Using passed serial port"
|
||||||
|
Loading…
Reference in New Issue
Block a user