[OpenWrt-Devel] [BROKEN][package-ipkg.mk] postinst, prerm, conffiles from original makefile killed

Jo-Philipp Wich jow at openwrt.org
Fri Oct 24 05:32:03 EDT 2014


Hi Christian,

should be fixed with 43017 - thanks for reporting.

Btw, there's two little problems with the prerm & postinst defines in
the ddns-scripts Makefile:

First you should not indent the script code, otherwise the final script
file will have leading spaces on each line.

Second you must quote any "$" as "$$" otherwise it is interpolated by
make and not output to the file, e.g. `[ -n "${IPKG_INSTROOT}" ]`
becomes `[ -n "" ]` therfore you need to write it as
  `[ -n "$${IPKG_INSTROOT}" ]`.


~ Jow
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list