base-files: make postinst script run inside a subshell

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 42800
owl
John Crispin 2014-10-06 05:55:35 +00:00
parent e263cd27ee
commit f9cccd2c14
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ default_prerm() {
default_postinst() {
local name rusers
name=$(echo $(basename $1) | cut -d. -f1)
[ -f ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.postinst-pkg ] && . ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.postinst-pkg
[ -f ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.postinst-pkg ] && ( . ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.postinst-pkg )
rusers=$(grep "Require-User:" ${IPKG_INSTROOT}/usr/lib/opkg/info/${name}.control)
[ -n "$rusers" ] && {
local user group