From 1bf67dcd798e6edc859e74c77b194928d7f63fbe Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sun, 30 Mar 2008 19:25:31 +0000 Subject: * Moved exec, execl from ffluci.util to ffluci.sys * Introduced stub for ffluci.model.ipkg --- src/ffluci/util.lua | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/ffluci/util.lua') 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) -- cgit v1.2.3