summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/util.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-03-30 19:25:31 +0000
committerSteven Barth <steven@midlink.org>2008-03-30 19:25:31 +0000
commit1bf67dcd798e6edc859e74c77b194928d7f63fbe (patch)
tree8df67a3ac9228a72daac8149d16c075ad9686038 /src/ffluci/util.lua
parent9b4e269bea4db2e75d3d33757a53d2ab89bf05bf (diff)
* Moved exec, execl from ffluci.util to ffluci.sys
* Introduced stub for ffluci.model.ipkg
Diffstat (limited to 'src/ffluci/util.lua')
-rw-r--r--src/ffluci/util.lua27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/ffluci/util.lua b/src/ffluci/util.lua
index c47a89895d..54ee071ef7 100644
--- a/src/ffluci/util.lua
+++ b/src/ffluci/util.lua
@@ -103,33 +103,6 @@ function escape(s, c)
end
--- Runs "command" and returns its output
-function exec(command)
- local pp = io.popen(command)
- local data = pp:read("*a")
- pp:close()
-
- return data
-end
-
-
--- Runs "command" and returns its output as a array of lines
-function execl(command)
- local pp = io.popen(command)
- local line = ""
- local data = {}
-
- while true do
- line = pp:read()
- if (line == nil) then break end
- table.insert(data, line)
- end
- pp:close()
-
- return data
-end
-
-
-- Populate obj in the scope of f as key
function extfenv(f, key, obj)
local scope = getfenv(f)