ungleich-tools/openwrt-add-camera.sh

29 lines
386 B
Bash
Raw Normal View History

2020-10-12 21:06:24 +00:00
#!/bin/sh
opkg install motion kmod-video-uvc
uci set motion.general.enabled=1
cat > /etc/motion.conf <<EOF
daemon off
process_id_file /var/run/motion/motion.pid
setup_mode off
webcontrol_port 8080
webcontrol_localhost on
videodevice /dev/video0
v4l2_palette 8
width 1280
height 720
videodevice /dev/video0
input -1
text_left place7, Luchsingen
stream_port 8081
framerate 1
EOF