25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
-
- SERIAL=/dev/tty.USA19QWfd31P1.1
- echo -ne "7" > $SERIAL
- sleep 1
- echo -ne "10000000\r" > $SERIAL
- sleep 1
- printf "%08x\r" `stat -f %z image` > $SERIAL
- sleep 1
- cat image > $SERIAL
- sleep 1
- echo -ne 5 > $SERIAL
- sleep 1
- echo 10000000 > $SERIAL
|