From d226c3cf0cb64993536865ba52729d791102e7ab Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Sat, 24 Nov 2018 18:07:51 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ewebcam=E2=80=9C=20hinzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webcam | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 webcam 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