diff options
Diffstat (limited to 'libs/core/luasrc')
-rw-r--r-- | libs/core/luasrc/model/ipkg.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/core/luasrc/model/ipkg.lua b/libs/core/luasrc/model/ipkg.lua index e95a2620a0..075acc4c3a 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) |