Change ttyUSB0 to ttyAMA0
This commit is contained in:
parent
d8bb2af46b
commit
9b327fc084
4
bmc.sh
4
bmc.sh
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue