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

Christian Schoenebeck christian.schoenebeck at gmail.com
Fri Oct 24 06:00:30 EDT 2014


Hi Jow,

postinst and prerm are copied shell scripts
and executed on the box and not by make
thats the reason for #!/bin/sh required on the first line
so "$$" not needed. right ?
Thanks

Christian

Am 24.10.2014 um 11:32 schrieb Jo-Philipp Wich:
> 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
> 
_______________________________________________
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