diff options
| -rw-r--r-- | opennhrp-model.lua | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/opennhrp-model.lua b/opennhrp-model.lua index 6f32ae7..c59e22e 100644 --- a/opennhrp-model.lua +++ b/opennhrp-model.lua @@ -194,10 +194,7 @@ end  function getshowreport()  	local peers_list = cfe({ type="structure", value={}, label="Peers" })  	local opennhrpstatus = cfe({ value="Show report not available", label="Status" }) -	local cmd = "/usr/sbin/opennhrpctl show 2>/dev/null" -	local f = io.popen( cmd ) -	local content = f:read("*a") -	f:close() +	local content = modelfunctions.run_executable({"opennhrpctl", "show"})  	local current  	for line in string.gmatch(content, "([^\n]*)\n?") do  		if string.find(line, "^Status:") then  | 
