diff --git a/webcam b/webcam new file mode 100644 index 0000000..32a826a --- /dev/null +++ b/webcam @@ -0,0 +1,18 @@ +#!/bin/bash +# Start / stop streamer daemon +# copy to /home/pi/scripts/webcam + +case "$1" in + start) + /home/pi/scripts/webcamDaemon >/dev/null 2>&1 & + echo "$0: started" + ;; + stop) + pkill -x webcamDaemon + pkill -x mjpg_streamer + echo "$0: stopped" + ;; + *) + echo "Usage: $0 {start|stop}" >&2 + ;; +esac \ No newline at end of file