Reenable working Freifunk modules
[project/luci.git] / libs / core / luasrc / model / ipkg.lua
index e95a262..075acc4 100644 (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)