summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-12-04 22:53:56 +0000
committerTed Trask <ttrask01@yahoo.com>2012-12-04 22:53:56 +0000
commiteb11f2e01942655779b4eb8b6952ad632d7bfb8c (patch)
treea13b58a769ee1efb7a53e5f6064a61f39236c4df
parent8879e15c0f2d3f38df5bf56d7cd1264a138b669e (diff)
downloadacf-alpine-baselayout-eb11f2e01942655779b4eb8b6952ad632d7bfb8c.tar.bz2
acf-alpine-baselayout-eb11f2e01942655779b4eb8b6952ad632d7bfb8c.tar.xz
Interfaces: removed unnecessary escapespecialcharacters calls
-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