Set properties for new cable
[libremanage.git] / libremanage
index 0d696dd69297448b569c1b4bcc8bbfcffbf925e5..6b137d43377f457a409e0cfd5436d6d893920623 100755 (executable)
@@ -126,7 +126,7 @@ COMMANDS = {
         # TTY access (or keyboard if wired as such)
 
         "tty": open_tty, 
-        "tty-baud": lambda s: open_ssh(s, "stty -F "+ s["tty"]["file"] + " " + str(s["tty"]["baud"])),
+        "tty-baud": lambda s: open_ssh(s, "stty -F "+ s["tty"]["file"] + " cs7 cstopb -ixon raw speed " + str(s["tty"]["baud"])),
         "tty-read": lambda s: open_ssh(s, "cat " + s["tty"]["file"], force_tty=True),
         "tty-write": lambda s: open_ssh(s, "stdbuf -o0 cat > " + s["tty"]["file"], force_tty=True),