projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libs/core: luci.model.ipkg: Use OPKG instead of IPKG if available
[project/luci.git]
/
libs
/
core
/
luasrc
/
model
/
ipkg.lua
diff --git
a/libs/core/luasrc/model/ipkg.lua
b/libs/core/luasrc/model/ipkg.lua
index
e95a262
..
075acc4
100644
(file)
--- a/
libs/core/luasrc/model/ipkg.lua
+++ b/
libs/core/luasrc/model/ipkg.lua
@@
-28,8
+28,9
@@
limitations under the License.
module("luci.model.ipkg", package.seeall)
require("luci.sys")
require("luci.util")
+require("luci.fs")
-ipkg = "ipkg"
+ipkg =
luci.fs.access("/bin/opkg") and "opkg" or
"ipkg"
-- Returns repository information
function info(pkg)