10 lines
121 B
Bash
10 lines
121 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [ $# -lt 2 ]; then
|
||
|
echo "Usage: $0 </dev/ttyX> <progfile>"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
stty -F "$1" raw
|
||
|
cat "$2" > "$1"
|