summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-03 16:39:20 +0000
committerSteven Barth <steven@midlink.org>2008-08-03 16:39:20 +0000
commit513e1cbba9e8ba98cc0b4f667aa89233b72b4dd1 (patch)
tree6c8b87a3424037e3961e41ff97a62c76f8dcbce3
parent15facd92800b6e89bbaaf262bf23c9c6328b2dfd (diff)
libs/core: luci.model.ipkg: Use OPKG instead of IPKG if available
-rw-r--r--libs/core/luasrc/model/ipkg.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/core/luasrc/model/ipkg.lua b/libs/core/luasrc/model/ipkg.lua
index e95a2620a..075acc4c3 100644
--- 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)