Change ttyUSB0 to ttyAMA0

This commit is contained in:
Joshua Boniface 2017-06-03 03:00:12 -04:00
parent d8bb2af46b
commit 9b327fc084
1 changed files with 2 additions and 2 deletions

4
bmc.sh
View File

@ -131,9 +131,9 @@ while true; do
'console') 'console')
echo "Starting console..." echo "Starting console..."
# Connect to screen, or start it # Connect to screen, or start it
sudo screen -r serialconsole &>/dev/null || sudo screen -S serialconsole /dev/ttyUSB0 115200 sudo screen -r serialconsole &>/dev/null || sudo screen -S serialconsole /dev/ttyAMA0 115200
# If the user killed screen, restart it - just in case # If the user killed screen, restart it - just in case
pgrep screen &>/dev/null || sudo screen -S serialconsole /dev/ttyUSB0 115200 pgrep screen &>/dev/null || sudo screen -S serialconsole /dev/ttyAMA0 115200
echo echo
;; ;;
'power') 'power')