rpi-octo-webcam/webcam

18 lines
369 B
Plaintext
Raw Normal View History

2018-11-24 19:07:51 +01:00
#!/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