diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-15 15:23:50 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-15 15:23:50 +0000 |
commit | 9a6d72238d015580723edf92912be1e34a1fb687 (patch) | |
tree | 6b3abfa5633d3014c69fa70dc0e585cf6c4dd953 /libs/lpk/luasrc/lpk.lua | |
parent | 2a9ffa6d28432aaf58d620adfa891c8ff403d131 (diff) |
trunk: remove libs/lpk and libs/luanet
Diffstat (limited to 'libs/lpk/luasrc/lpk.lua')
-rw-r--r-- | libs/lpk/luasrc/lpk.lua | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/libs/lpk/luasrc/lpk.lua b/libs/lpk/luasrc/lpk.lua deleted file mode 100644 index 7117c75f9c..0000000000 --- a/libs/lpk/luasrc/lpk.lua +++ /dev/null @@ -1,41 +0,0 @@ -module("luci.lpk", package.seeall) -require("luci.lpk.util") -require("luci.lpk.core") - -__appname__ = "LuCI »lpk« Package Manager" -__version__ = "0.1" -__authors__ = "Steven Barth, Jo-Philipp Wich" -__cpyrght__ = string.format("Copyright (c) 2008 %s", __authors__) - - -options, arguments = luci.lpk.util.getopt(arg) -config = luci.util.dtable() -machine = luci.lpk.core.Machine() - -local cfgdump = loadfile("/etc/lpk.conf") -if cfgdump then - setfenv(cfgdump, config) - pcall(cfgdump) -end - -if #arguments < 1 then - luci.lpk.util.splash() -else - local task, error = machine:task(table.remove(arguments, 1), - unpack(arguments)) - - if task then - local stat, error = task:perform() - if not stat then - luci.util.perror(error or task.register.errstr or "Unknown Error") - os.exit(task.register.error or 1) - end - else - luci.util.perror((error or "Unknown Error") .. "\n") - luci.lpk.util.splash() - os.exit(1) - end -end - - - |