Commit ddbeb8ed authored by Mika Havela's avatar Mika Havela

Using 'path' variable instead of specifying path for commands

parent b7dc7806
......@@ -38,7 +38,7 @@ local descr = {
-- Make sure to escape special characters before calling this function
local function ip_xfrm(mode)
local cmd_output_result
local cmd = "/sbin/ip xfrm " .. (mode or "") .. " 2>/dev/null"
local cmd = path .. "ip xfrm " .. (mode or "") .. " 2>/dev/null"
local f = io.popen( cmd )
local cmd_output_result = f:read("*a")
f:close()
......@@ -55,7 +55,7 @@ end
local function racoonctl_table()
local output = {}
local cmd = "/usr/sbin/racoonctl -lll show-sa isakmp 2>/dev/null"
local cmd = path .. "racoonctl -lll show-sa isakmp 2>/dev/null"
local f = io.popen( cmd )
local value = f:read("*a")
f:close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment