diff --git a/misc/autocons.py b/misc/autocons.py index 5c5bf127..ebd13466 100644 --- a/misc/autocons.py +++ b/misc/autocons.py @@ -1,3 +1,4 @@ +import fcntl import os import struct import termios @@ -46,6 +47,8 @@ def do_serial_config(): currattr = termios.tcgetattr(ttyf) currattr[4:6] = [0, termiobaud[retval['speed']]] termios.tcsetattr(ttyf, termios.TCSANOW, currattr) + retval['connected'] = bool(struct.unpack('