S&B Volcano vaporizer remote control with Pi Pico W
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

copy.sh 797B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. if [ $# -ne 0 ] ; then
  3. cat << EOF | rshell
  4. cp poll.py /pyboard
  5. cp scan.py /pyboard
  6. cp lcd.py /pyboard
  7. cp workflows.py /pyboard
  8. cp states.py /pyboard
  9. cp state_scan.py /pyboard
  10. cp state_connect.py /pyboard
  11. cp state_select.py /pyboard
  12. cp state_heat.py /pyboard
  13. cp state_wait_temp.py /pyboard
  14. cp state_wait_time.py /pyboard
  15. cp state_pump.py /pyboard
  16. cp state_notify.py /pyboard
  17. cp $1 /pyboard/main.py
  18. EOF
  19. else
  20. cat << EOF | rshell
  21. cp poll.py /pyboard
  22. cp scan.py /pyboard
  23. cp lcd.py /pyboard
  24. cp workflows.py /pyboard
  25. cp states.py /pyboard
  26. cp state_scan.py /pyboard
  27. cp state_connect.py /pyboard
  28. cp state_select.py /pyboard
  29. cp state_heat.py /pyboard
  30. cp state_wait_temp.py /pyboard
  31. cp state_wait_time.py /pyboard
  32. cp state_pump.py /pyboard
  33. cp state_notify.py /pyboard
  34. rm /pyboard/main.py
  35. EOF
  36. fi