diff options
| author | Ted Trask <ttrask01@yahoo.com> | 2013-01-01 21:10:42 +0000 | 
|---|---|---|
| committer | Ted Trask <ttrask01@yahoo.com> | 2013-01-01 21:10:42 +0000 | 
| commit | 1d2252a990f1be42d87b625c1a6f67b90de0d0f7 (patch) | |
| tree | 387d2653b5d6616a26a3a0860ff27213993de16a | |
| parent | 4131b502de4da1e7a5b0bc95edfe13b8bae7d84f (diff) | |
| download | acf-opennhrp-1d2252a990f1be42d87b625c1a6f67b90de0d0f7.tar.bz2 acf-opennhrp-1d2252a990f1be42d87b625c1a6f67b90de0d0f7.tar.xz  | |
Replace io.popen with modelfunctions.run_executable
| -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  | 
