Created
July 28, 2013 17:44
-
-
Save foosel/6099425 to your computer and use it in GitHub Desktop.
Adjusted webcamDaemon for OctoPi that does not hang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
vcgencmd version | |
while true; do | |
if [ "`vcgencmd get_camera`" = "supported=1 detected=1" ]; then | |
logger "Starting webcam" | |
pushd /home/pi/mjpg-streamer-experimental | |
LD_LIBRARY_PATH=. ./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so -d 100" | |
popd | |
fi | |
sleep 120 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment