summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--interfaces-model.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/interfaces-model.lua b/interfaces-model.lua
index 57c86fd..548dcb1 100644
--- a/interfaces-model.lua
+++ b/interfaces-model.lua
@@ -421,15 +421,15 @@ get_status = function ()
status.filename.errtxt = "File not found"
end
local cmd = path.."ip route"
- local f = io.popen(format.escapespecialcharacters(cmd))
+ local f = io.popen(cmd)
status.iproute.value = f:read("*a")
f:close()
cmd = path.."ip addr"
- f = io.popen(format.escapespecialcharacters(cmd))
+ f = io.popen(cmd)
status.ipaddr.value = f:read("*a")
f:close()
cmd = path.."ip tunnel"
- f = io.popen(format.escapespecialcharacters(cmd))
+ f = io.popen(cmd)
status.iptunnel.value = f:read("*a")
f:close()
@@ -448,7 +448,7 @@ end
get_interfaces = function()
local cmd = path.."ip addr"
- local f = io.popen(format.escapespecialcharacters(cmd))
+ local f = io.popen(cmd)
local ipaddr = f:read("*a")
f:close()
-- now parse the result to find the interfaces
@@ -464,7 +464,7 @@ end
get_addresses = function()
local cmd = path.."ip addr"
- local f = io.popen(format.escapespecialcharacters(cmd))
+ local f = io.popen(cmd)
local ipaddr = f:read("*a")
f:close()
-- now parse the result to find the interfaces and IP addresses