Przeglądaj źródła

base-files: make postinst script run inside a subshell

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 42800
John Crispin 11 lat temu
rodzic
commit
f9cccd2c14
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      package/base-files/files/lib/functions.sh

+ 1 - 1
package/base-files/files/lib/functions.sh

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