Commit b0756e7b authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

ucollect: Handle empty configuration file

parent 40677d7c
......@@ -107,6 +107,17 @@ define Package/lcollect/install
#$(INSTALL_DATA) $(PKG_BUILD_DIR)/bin/lcollect.debug $(1)/usr/lib/debug/usr/bin/
endef
define Package/ucollect-config/postrm
#!/bin/sh
[ -f "$$IPKG_INSTROOT/etc/config/ucollect" ] || touch "$$IPKG_INSTROOT/etc/config/ucollect"
endef
define Package/ucollect-config/preinst
#!/bin/sh
[ -n "`cat "$$IPKG_INSTROOT/etc/config/ucollect"`" ] || rm "$$IPKG_INSTROOT/etc/config/ucollect"
endef
define Package/lcollect/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || {
......
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