From daec7d676b96ffa8e31f34024690b4c402fa0fe6 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 24 Sep 2020 15:13:24 +0200 Subject: [PATCH] [openwrt] WIP: add new scripts for acme and camera --- openwrt-add-letsencrypt.sh | 6 ++++ openwrt-motion-config.sh | 57 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 openwrt-add-letsencrypt.sh create mode 100644 openwrt-motion-config.sh diff --git a/openwrt-add-letsencrypt.sh b/openwrt-add-letsencrypt.sh new file mode 100644 index 0000000..43e3b4b --- /dev/null +++ b/openwrt-add-letsencrypt.sh @@ -0,0 +1,6 @@ + +opkg install luci-ssl-openssl acme luci-app-acme + +uci set uhttpd.main.redirect_https=1 +uci commit +/etc/init.d/uhttpd restart diff --git a/openwrt-motion-config.sh b/openwrt-motion-config.sh new file mode 100644 index 0000000..b4cb5cc --- /dev/null +++ b/openwrt-motion-config.sh @@ -0,0 +1,57 @@ +#!/bin/sh + + +if [ $# -ne 1 ]; then + echo "$0 ip-address interface" + echo " ip-address: where to find the OpenWRT device" + exit 1 +fi + +my_ip=$1; shift + +cat <