diff --git a/openwrt-add-camera.sh b/openwrt-add-camera-with-mjpg-streamer.sh similarity index 100% rename from openwrt-add-camera.sh rename to openwrt-add-camera-with-mjpg-streamer.sh diff --git a/openwrt-add-camera-with-motion.sh b/openwrt-add-camera-with-motion.sh new file mode 100755 index 0000000..33d5fd3 --- /dev/null +++ b/openwrt-add-camera-with-motion.sh @@ -0,0 +1,52 @@ +#!/bin/sh + +if [ $# -lt 1 ]; then + echo "$0 ip-address" + echo " ip-address: where to find the device" + exit 1 +fi + + +set -x + +openwrt_ip=$1; shift + +ping -c3 ${openwrt_ip} +if [ $? -ne 0 ]; then + echo "Cannot reach ${openwrt_ip}, aborting" + exit 1 +fi + +cat < /etc/motion.conf <