libs/core: luci.model.ipkg: Use OPKG instead of IPKG if available

This commit is contained in:
Steven Barth 2008-08-03 16:39:20 +00:00
parent 15facd9280
commit 513e1cbba9

View file

@ -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)