Skip to content
Snippets Groups Projects
Commit 27529677 authored by Jan-Tarek Butt's avatar Jan-Tarek Butt
Browse files

fix a conflict with the package opkg

parent 17762232
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,11 @@ define Build/Compile ...@@ -29,7 +29,11 @@ define Build/Compile
endef endef
define Package/ffnw-opkgconfig/install define Package/ffnw-opkgconfig/install
$(INSTALL_CONF) files/opkg.conf $(1)/etc/opkg.conf $(INSTALL_DIR) $(1)/lib/gluon/cron/
$(INSTALL_DATA) files/lib/gluon/cron/opkgconfig $(1)/lib/gluon/cron/opkgconfig
$(INSTALL_DIR) $(1)/lib/ffnw/opkgconfig/
$(INSTALL_BIN) files/lib/ffnw/opkgconfig/opkgconfig.sh $(1)/lib/ffnw/opkgconfig/
$(INSTALL_CONF) files/lib/ffnw/opkgconfig/opkg.conf $(1)/lib/ffnw/opkgconfig/
endef endef
$(eval $(call BuildPackage,ffnw-opkgconfig)) $(eval $(call BuildPackage,ffnw-opkgconfig))
#!/bin/sh
cleanup () {
rm -rf /lib/gluon/cron/opkgconfig
rm -rf /lib/ffnw/opkgconfig
}
grep -Fxvf /etc/opkg.conf /lib/ffnw/opkgconfig/opkg.conf > /dev/null
if [ $? -eq 0 ]; then
mv /lib/ffnw/opkgconfig/opkg.conf /etc/opkg.conf
cleanup
else
cleanup
fi
*/5 * * * * sh /lib/ffnw/opkgconfig/opkgconfig.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment