projects
/
openwrt
/
staging
/
aparcar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e263cd2
)
base-files: make postinst script run inside a subshell
author
John Crispin
<
[email protected]
>
Mon, 6 Oct 2014 05:55:35 +0000
(
05:55
+0000)
committer
John Crispin
<
[email protected]
>
Mon, 6 Oct 2014 05:55:35 +0000
(
05:55
+0000)
Signed-off-by: John Crispin <
[email protected]
>
SVN-Revision: 42800
package/base-files/files/lib/functions.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/functions.sh
b/package/base-files/files/lib/functions.sh
index fafb7a340fe7c69dacb7506eb464fe8b4a8c4ea1..7f148223f525bbfb0859f604a2abd1ed9dead936 100755
(executable)
--- 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