Skip to content

Commit

Permalink
portal: faster reboot, opt-out pick up timezone from browser
Browse files Browse the repository at this point in the history
  • Loading branch information
themactep committed Nov 8, 2024
1 parent 5650786 commit 67a2fc6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package/thingino-portal/files/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -84,7 +84,6 @@ h2 {font-size:1.3rem}
</header>
<main>
<div class="container">

<%
# GET request with configuration saved
if [ "GET" = "$REQUEST_METHOD" ] && [ -n "$wlanssid" ] && [ -n "$wlanpass" ]; then
Expand Down Expand Up @@ -124,7 +123,7 @@ elif [ "GET" = "$REQUEST_METHOD" ] || [ "edit" = "$POST_mode" ]; then
</div>
<div class="my-3">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="frombrowser" name="frombrowser" value="true"<% [ "true" = $frombrowser ] && echo " checked" %>>
<input class="form-check-input" type="checkbox" role="switch" id="frombrowser" name="frombrowser" value="true"<% [ "false" != $frombrowser ] && echo " checked" %>>
<label class="form-check-label" for="frombrowser">Pick up time settings from the browser</label>
</div>
</div>
Expand Down

0 comments on commit 67a2fc6

Please sign in to comment.