summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/controller/admin/uci.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/ffluci/controller/admin/uci.lua')
-rw-r--r--src/ffluci/controller/admin/uci.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ffluci/controller/admin/uci.lua b/src/ffluci/controller/admin/uci.lua
index 9f8c12499..3c9fc8739 100644
--- a/src/ffluci/controller/admin/uci.lua
+++ b/src/ffluci/controller/admin/uci.lua
@@ -1,4 +1,6 @@
module("ffluci.controller.admin.uci", package.seeall)
+require("ffluci.util")
+require("ffluci.sys")
-- This function has a higher priority than the admin_uci/apply template
function action_apply()
@@ -24,7 +26,7 @@ function action_apply()
for k, v in pairs(apply) do
local cmd = ffluci.config.uci_oncommit[k]
if cmd then
- output = output .. cmd .. ":" .. ffluci.util.exec(cmd)
+ output = output .. cmd .. ":" .. ffluci.sys.exec(cmd)
end
end
end