libs/core: luci.model.ipkg: Use OPKG instead of IPKG if available
This commit is contained in:
parent
15facd9280
commit
513e1cbba9
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue