Developing lightweight computation at the DSG edge

Commit c34140f1 authored by p4u's avatar p4u
Browse files

Add script to enable webcam streaming if mjpg_streamer is installed

parent 280848c6
#!/bin/sh
if which mjpg_streamer; then
if which uhttpd; then
PORT="8080"
else
PORT="80"
fi
sed s/"exit 0"//g -i /etc/rc.local
echo "mjpg_streamer -i \"/usr/lib/input_uvc.so -y -d /dev/video0\" -o \"/usr/lib/output_http.so -p $PORT -w /www/webcam\" &" >> /etc/rc.local
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment