From 6f38801ed8bc0b0ae4c28b7df63c7daf91ab36b7 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 13 Dec 2016 14:59:52 +0100 Subject: [PATCH] Add "Interface appearence" option --- advanced/Scripts/webpage.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 4730118d..5863d2dc 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -152,6 +152,14 @@ DisableDHCP(){ RestartDNS } +SetWebUILayout(){ + + # Remove setting from file (create backup setupVars.conf.bak) + sed -i.bak '/WEBUIBOXEDLAYOUT/d;' /etc/pihole/setupVars.conf + echo "WEBUIBOXEDLAYOUT=${args[2]}" >> /etc/pihole/setupVars.conf + +} + for var in "$@"; do case "${var}" in "-p" | "password" ) SetWebPassword;; @@ -165,6 +173,7 @@ for var in "$@"; do "setquerylog" ) SetQueryLogOptions;; "enabledhcp" ) EnableDHCP;; "disabledhcp" ) DisableDHCP;; + "layout" ) SetWebUILayout;; "-h" | "--help" ) helpFunc;; esac done