cmd 377 B

123456789101112131415
  1. #!/bin/sh
  2. if [ "$1" == "" ]; then
  3. echo -e "welcome to: cmd <arg>\n"
  4. echo -e "arg can be:"
  5. echo -e "jpeg (will dump raw jpeg to stdout)"
  6. echo -e "video on or off"
  7. echo -e "audio on or off"
  8. echo -e "move"
  9. echo -e "waitMotion <timeout>"
  10. echo -e "irled on or off"
  11. echo -e "aplay <file path> <volume 1-100>"
  12. else
  13. echo "$*" | /opt/wz_mini/bin/busybox nc localhost 4000
  14. fi