ungleich-tools/openwrt-add-camera.sh
Nico Schottelius b2ab0959a3 +exec
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2020-10-26 11:51:16 +01:00

28 lines
386 B
Bash
Executable file

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