noreset 216 B

123456789101112
  1. #!/bin/sh
  2. prg=$(basename "$0")
  3. port="$1"
  4. if [ -z "$port" -o "$port" = "-h" ]
  5. then
  6. echo "usage: $0 <port>" >&2
  7. echo "Set TTY flags on <port> to avoid reset-on-connect" >&2
  8. exit 1
  9. fi
  10. set -e
  11. stty -F "$port" -hup