„webcam“ hinzufügen

This commit is contained in:
Manuel Weiser 2018-11-24 18:07:51 +00:00
parent a745142098
commit d226c3cf0c

18
webcam Normal file
View File

@ -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