Commit 4720087b authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

ucollect: More robust hack

parent b0756e7b
......@@ -110,12 +110,12 @@ endef
define Package/ucollect-config/postrm
#!/bin/sh
[ -f "$$IPKG_INSTROOT/etc/config/ucollect" ] || touch "$$IPKG_INSTROOT/etc/config/ucollect"
[ -f "$$IPKG_INSTROOT/etc/config/ucollect" ] || touch "$$IPKG_INSTROOT/etc/config/ucollect" || true
endef
define Package/ucollect-config/preinst
#!/bin/sh
[ -n "`cat "$$IPKG_INSTROOT/etc/config/ucollect"`" ] || rm "$$IPKG_INSTROOT/etc/config/ucollect"
[ -n "`cat "$$IPKG_INSTROOT/etc/config/ucollect" 2 >/dev/null`" ] || rm -f "$$IPKG_INSTROOT/etc/config/ucollect"
endef
define Package/lcollect/postinst
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment