aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-10-06 05:55:35 +0000
committerJohn Crispin <blogic@openwrt.org>2014-10-06 05:55:35 +0000
commitfef66999f849771f087869f715e1adb94580cc04 (patch)
treef1f52f29d7f73ee16bb74b49558bb67e18e26935 /package/base-files
parent6a1dd4f0e7452ce66f7a332ba351bdb1c05e5214 (diff)
downloadmaster-187ad058-fef66999f849771f087869f715e1adb94580cc04.tar.gz
master-187ad058-fef66999f849771f087869f715e1adb94580cc04.tar.bz2
master-187ad058-fef66999f849771f087869f715e1adb94580cc04.zip
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-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/lib/functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index fafb7a340f..7f148223f5 100755
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -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