diff --git a/emhttp/plugins/dynamix/WG0.page b/emhttp/plugins/dynamix/WG0.page index cb9153452..0699423eb 100644 --- a/emhttp/plugins/dynamix/WG0.page +++ b/emhttp/plugins/dynamix/WG0.page @@ -130,7 +130,7 @@ $active = explode(' ',exec('wg show interfaces')); $autostart = explode(' ',@file_get_contents("$etc/autostart")?:''); $build = false; $script = "$docroot/webGui/scripts/upnp_port"; -$services = "$docroot/webGui/scripts/reload_services"; +$services = "$docroot/webGui/scripts/update_services"; $template = "$docroot/webGui/WGX.page"; $tower = _var($var,'NAME'); $ethX = 'eth0'; diff --git a/emhttp/plugins/dynamix/scripts/reload_services b/emhttp/plugins/dynamix/scripts/reload_services index 36361190e..f3750640e 100755 --- a/emhttp/plugins/dynamix/scripts/reload_services +++ b/emhttp/plugins/dynamix/scripts/reload_services @@ -1,5 +1,5 @@ #!/bin/bash -SERVICES="sshd avahidaemon samba rpc nfsd ntpd nginx" +SERVICES="rpc nfsd ntpd nginx sshd avahidaemon samba" if [[ -n $1 ]]; then [[ ! -e $1 ]] && touch $1 || exit 0 diff --git a/emhttp/plugins/dynamix/scripts/update_services b/emhttp/plugins/dynamix/scripts/update_services new file mode 100644 index 000000000..0b59b9f78 --- /dev/null +++ b/emhttp/plugins/dynamix/scripts/update_services @@ -0,0 +1,8 @@ +#!/bin/bash +job=/tmp/wgjob.tmp +reload=/usr/local/emhttp/webGui/scripts/reload_services + +rm -f $job +echo "sleep 5;$reload $job"|at -M now 2>/dev/null +exit 0 +