]>
Commit | Line | Data |
---|---|---|
8fc5602a MG |
1 | #!/bin/sh |
2 | ||
3 | DEVICE=/dev/ttyAMA0,b38400 | |
4 | PORT=2323 | |
5 | #OPTIONS="-ly -lh" | |
6 | #OPTIONS="-v -x" | |
7 | ||
8 | "`dirname "${0}"`"/init-coc | |
9 | ||
10 | while true; do | |
11 | echo "Listening on port ${PORT} for new connection requests" | |
7a60ac2c | 12 | socat ${OPTIONS} "${DEVICE},raw,echo=0" "TCP-LISTEN:${PORT},reuseaddr" |
8fc5602a | 13 | done |