Undo GUI access

This commit is contained in:
bergware
2017-06-23 19:58:43 +02:00
parent bcaa259957
commit 66bbc91c3f
4 changed files with 0 additions and 125 deletions
-10
View File
@@ -1,10 +0,0 @@
#!/bin/bash
# usage: accessmode [-r] [-p http [,https]]
[[ -n $1 ]] && options="$1" || options=
[[ -n $2 ]] && options="$1 $2"
[[ -n $options ]] && options="$options \&" || options="\&"
sed -ri "s|^(.*/usr/local/sbin/emhttp).*|\1 $options|1" /boot/config/go
# We need to restart the GUI in a separate process to prevent it from hanging
at -M -f /usr/local/emhttp/webGui/scripts/restart_gui now 2>/dev/null
-5
View File
@@ -1,5 +0,0 @@
#!/bin/bash
# read go file settings and restart GUI
# called from accessmode script
/usr/local/sbin/emhttp $(grep -Po '^.*/usr/local/sbin/emhttp \K[^&]*' /boot/config/go) restart >/dev/null