[openwrt] camera switch to mjpg
This commit is contained in:
parent
04f38ee09b
commit
7e4fe889d9
1 changed files with 21 additions and 0 deletions
|
@ -20,6 +20,27 @@ fi
|
||||||
cat <<EOF | ssh -t "root@${openwrt_ip}"
|
cat <<EOF | ssh -t "root@${openwrt_ip}"
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
opkg update
|
||||||
|
opkg install mjpg-streamer kmod-video-uvc
|
||||||
|
|
||||||
|
uci set mjpg-streamer.core.enabled=1
|
||||||
|
uci set mjpg-streamer.core.resolution="1920x1080"
|
||||||
|
uci delete mjpg-streamer.core.username
|
||||||
|
uci delete mjpg-streamer.core.password
|
||||||
|
uci commit
|
||||||
|
|
||||||
|
/etc/init.d/mjpg-streamer restart
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
||||||
|
# This is old code / when we used motion
|
||||||
|
|
||||||
|
cat <<EOF | ssh -t "root@${openwrt_ip}"
|
||||||
|
set -x
|
||||||
|
|
||||||
opkg update
|
opkg update
|
||||||
opkg install motion kmod-video-uvc
|
opkg install motion kmod-video-uvc
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue