From 189a4e0078901e22b1a77b8d00240fdb0e3abb99 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 1 Mar 2017 11:26:06 +0100 Subject: [PATCH] Add option to skip restarting of dnsmasq --- advanced/Scripts/webpage.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index e971e87e..72e529fc 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -401,10 +401,13 @@ SetListeningMode(){ change_setting "DNSMASQ_LISTENING" "local" fi - ProcessDNSSettings - - # Restart dnsmasq to load new configuration - RestartDNS + # Don't restart DNS server yet because other settings + # will be applied afterwards if "-web" is set + if [[ "${args[3]}" != "-web" ]]; then + ProcessDNSSettings + # Restart dnsmasq to load new configuration + RestartDNS + fi }