base-files: make postinst script run inside a subshell
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42800 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
6a1dd4f0e7
commit
fef66999f8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue