diff options
author | Steven Barth <steven@midlink.org> | 2008-08-06 20:11:15 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-06 20:11:15 +0000 |
commit | 76982655fa433edd885bbb80bbe74e82fca527e2 (patch) | |
tree | 98b1f8cfff0bedaf13795779710123f0194dffc1 /modules/admin-full/luasrc/controller | |
parent | b1b0c085de7483c5a778f0056a97da14e87b7f16 (diff) |
Moved luci.sys.exec, luci.sys.execl and luci.sys.bigendian to luci.util
Diffstat (limited to 'modules/admin-full/luasrc/controller')
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/system.lua | 2 | ||||
-rw-r--r-- | modules/admin-full/luasrc/controller/admin/uci.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/controller/admin/system.lua b/modules/admin-full/luasrc/controller/admin/system.lua index 8e3a3d7999..9abdb2abab 100644 --- a/modules/admin-full/luasrc/controller/admin/system.lua +++ b/modules/admin-full/luasrc/controller/admin/system.lua @@ -189,7 +189,7 @@ function action_backup() luci.ltn12.pump.all(luci.ltn12.source.file(backup_fpi), luci.http.write) elseif reset then luci.template.render("admin_system/applyreboot") - luci.sys.exec("mtd -r erase rootfs_data") + luci.util.exec("mtd -r erase rootfs_data") else luci.template.render("admin_system/backup", {reset_avail = reset_avail}) end diff --git a/modules/admin-full/luasrc/controller/admin/uci.lua b/modules/admin-full/luasrc/controller/admin/uci.lua index d2acdeca13..215889f85f 100644 --- a/modules/admin-full/luasrc/controller/admin/uci.lua +++ b/modules/admin-full/luasrc/controller/admin/uci.lua @@ -77,7 +77,7 @@ function action_apply() -- Search for post-commit commands for cmd, i in pairs(run) do - output = output .. cmd .. ":" .. luci.sys.exec(cmd) .. "\n" + output = output .. cmd .. ":" .. luci.util.exec(cmd) .. "\n" end end |