Guest User

Untitled

a guest
Jan 14th, 2016
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/sh
  2. # /etc/init.d/webcam
  3. #
  4.  
  5. # Carry out specific functions when asked to by the system
  6. case "$1" in
  7. start)
  8. cd /home/pi/mjpg-streamer/mjpg-streamer-experimental;
  9. ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so";
  10. echo "Starting mjpg-streamer "
  11. ;;
  12. stop)
  13. pkill mjpg-streamer
  14. echo "Stopping mjpg-streamer"
  15. ;;
  16. *)
  17. echo "Usage: /etc/init.d/webcam {start|stop}"
  18. exit 1
  19. ;;
  20. esac
  21.  
  22. exit 0
RAW Paste Data