From a2a7e8000795d2b58071d7393b86cf2bc3e894fc Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 25 Apr 2019 15:01:13 +0200 Subject: [PATCH] Add --web for sending a confirmation string when executed from the web interface. This is necessary as the "Reloading DNS service" message does not always propagate through to the web interface when reloading pihole-FTL takes a while. Signed-off-by: DL6ER --- advanced/Scripts/list.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/advanced/Scripts/list.sh b/advanced/Scripts/list.sh index 1ad99468..969e7e44 100755 --- a/advanced/Scripts/list.sh +++ b/advanced/Scripts/list.sh @@ -17,6 +17,7 @@ reload=false addmode=true verbose=true wildcard=false +web=false domList=() @@ -224,6 +225,7 @@ for var in "$@"; do "-h" | "--help" ) helpFunc;; "-l" | "--list" ) Displaylist;; "--nuke" ) NukeList;; + "--web" ) web=true;; * ) HandleOther "${var}";; esac done @@ -236,6 +238,11 @@ fi ProcessDomainList +# Used on web interface +if $web; then +echo "DONE" +fi + if [[ "${reload}" != false ]]; then pihole restartdns reload fi