From deda15c48b60a05b39a9fb0f9a9f7d4af68941d9 Mon Sep 17 00:00:00 2001 From: Ivan X Date: Mon, 30 May 2016 12:20:10 -0400 Subject: [PATCH] Fixed bug in adtpro.sh; can now reliably get serial port from ADTPro.properties --- setup/adtpro.sh.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/adtpro.sh.txt b/setup/adtpro.sh.txt index d005b0c..9104643 100644 --- a/setup/adtpro.sh.txt +++ b/setup/adtpro.sh.txt @@ -75,7 +75,7 @@ if [ "$OS" = "Linux" ]; then if [[ $serialPortName ]]; then sed -i "s/^CommPort=.*$/CommPort=\/dev\/$serialPortName/" /usr/local/adtpro/disks/ADTPro.properties &> /dev/null else - serialPortName=$(grep 'CommPort=/dev/' ADTPro.properties 2> /dev/null | cut -f 3 -d '/') + serialPortName=$(grep 'CommPort=/dev/' /usr/local/adtpro/disks/ADTPro.properties 2> /dev/null | cut -f 3 -d '/') fi else echo -e "#ADTPro.properties\n#$(date)\nCommPortSpeed=115200\nCommPortBootstrapSpeed=2400\nCommPort=/dev/$serialPortName\nCommPortBootstrapPacing=250\nHardwareHandshaking=false\nSerialIPHost=localhost\nSerialIPPort=1977" > /usr/local/adtpro/disks/ADTPro.properties