From 480cf1435f88ddf427d00ddacc71deb7bf8cd842 Mon Sep 17 00:00:00 2001 From: bergware Date: Sun, 19 Jun 2016 07:11:56 +0200 Subject: [PATCH] Change to standard syntax to get emhttp port --- plugins/dynamix/scripts/spindowndelay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/scripts/spindowndelay b/plugins/dynamix/scripts/spindowndelay index a3027b913..52a610ff4 100755 --- a/plugins/dynamix/scripts/spindowndelay +++ b/plugins/dynamix/scripts/spindowndelay @@ -38,4 +38,4 @@ if ($timer=='') { $delay = $timer; } // update spindown time of selected disk -exec("wget -qO /dev/null 127.0.0.1:$(lsof -lbnPi4 -sTCP:LISTEN|grep -Pom1 '^emhttp.*:\K[\d]+')/update.htm?diskSpindownDelay.$idx=$delay&changeDisk=apply"); +exec("wget -qO /dev/null 127.0.0.1:$(lsof -i -P -sTCP:LISTEN|grep -Pom1 '^emhttp.*:\K\d+')/update.htm?diskSpindownDelay.$idx=$delay&changeDisk=apply");