ungleich-tools/openwrt-add-camera.sh
2020-10-12 23:06:24 +02:00

28 lines
386 B
Bash

#!/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