test.sh 725 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. if [ "$1" == "" ]; then
  3. tty=/dev/ttyUSB0
  4. else
  5. tty=$1
  6. fi
  7. stty -F $tty cs8 raw speed 9600 >/dev/null
  8. printf "\n\000\000\000\170\000\301" >$tty
  9. printf " " >$tty
  10. printf "Io sono divano-bot 1.0" >$tty
  11. printf " ____/\/\/\/\/\/\/\/\/\____ " >$tty
  12. printf " Porco dio " >$tty
  13. printf " ____/\/\/\/\/\/\/\/\/\____ " >$tty
  14. sleep 20
  15. printf "\n\000\002" >$tty
  16. for i in {1..3}; do
  17. printf "JIGEN MERDA!" >$tty
  18. sleep 1
  19. printf "\n" >$tty
  20. sleep 1
  21. done
  22. printf "\000\174\000\301" >$tty
  23. printf " " >$tty
  24. printf "\370\370\370\370\370\370\370\370\370" >$tty
  25. sleep 8
  26. printf "\n\000\002" >$tty
  27. printf "XM24 RESISTE." >$tty