From 67a2fc65cfe02ecdac23934b0745c614948ab936 Mon Sep 17 00:00:00 2001 From: Paul Philippov Date: Fri, 8 Nov 2024 06:34:53 -0500 Subject: [PATCH] portal: faster reboot, opt-out pick up timezone from browser --- package/thingino-portal/files/index.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package/thingino-portal/files/index.cgi b/package/thingino-portal/files/index.cgi index 57f74252c..484f7c754 100755 --- a/package/thingino-portal/files/index.cgi +++ b/package/thingino-portal/files/index.cgi @@ -27,7 +27,7 @@ elif [ "POST" = "$REQUEST_METHOD" ]; then echo "$rootpkey" > /root/.ssh/authorized_keys sed -i "s/^ifs=.*$/ifs=wlan0/" /etc/onvif.conf - reboot -d 5 & + reboot -d 2 & http_header="HTTP/1.1 303 See Other" http_redirect="Location: $SCRIPT_NAME" @@ -84,7 +84,6 @@ h2 {font-size:1.3rem}
- <% # GET request with configuration saved if [ "GET" = "$REQUEST_METHOD" ] && [ -n "$wlanssid" ] && [ -n "$wlanpass" ]; then @@ -124,7 +123,7 @@ elif [ "GET" = "$REQUEST_METHOD" ] || [ "edit" = "$POST_mode" ]; then
-> +>