summaryrefslogtreecommitdiff
path: root/packages/bash/bash.inc
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2008-04-08 11:37:24 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2008-04-08 11:37:24 +0000
commit4be80e6cb623332400ef6c72f05b82dabbfdd5a2 (patch)
tree0ebf08acae3f72e5b934ee2845a8bd6fa9c3779c /packages/bash/bash.inc
parent16ed4baa80bcacf274161af82ab3f5c05e435a9a (diff)
bash: fix postinst to not touch host system
Diffstat (limited to 'packages/bash/bash.inc')
-rw-r--r--packages/bash/bash.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/bash/bash.inc b/packages/bash/bash.inc
index 80aedfa1c8..b67e8bbe39 100644
--- a/packages/bash/bash.inc
+++ b/packages/bash/bash.inc
@@ -20,7 +20,7 @@ do_configure () {
}
pkg_postinst () {
- touch ${sysconfdir}/shells
- grep -q "bin/bash" ${sysconfdir}/shells || echo /bin/bash >> ${sysconfdir}/shells
- grep -q "bin/sh" ${sysconfdir}/shells || echo /bin/sh >> ${sysconfdir}/shells
+ touch $D${sysconfdir}/shells
+ grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells
+ grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells
}