[oe-commits] org.oe.dev bash: create /etc/shells before using it

hrw commit openembedded-commits at lists.openembedded.org
Tue Feb 20 08:37:07 UTC 2007


bash: create /etc/shells before using it

Author: hrw at openembedded.org
Branch: org.openembedded.dev
Revision: a1525fff1e593fda2912c4e94cf13f76074249e0
ViewMTN: http://monotone.openembedded.org/revision.psp?id=a1525fff1e593fda2912c4e94cf13f76074249e0
Files:
1
packages/bash/bash_3.0.bb
packages/bash/bash_3.2.bb
Diffs:

#
# mt diff -r77c944a33cf18e3290d63c31f8c10ec748a6f29d -ra1525fff1e593fda2912c4e94cf13f76074249e0
#
# 
# 
# patch "packages/bash/bash_3.0.bb"
#  from [57b54499e81b93e5490888431ddaae8098212856]
#    to [48de4a6d031cc4d6918f31c704c403be5fff4b4f]
# 
# patch "packages/bash/bash_3.2.bb"
#  from [82089b9f06e01ef074d0a825f51f4396579a4028]
#    to [f98209f0fc4e7b5bb0b89433949527e7d14f208b]
# 
============================================================
--- packages/bash/bash_3.0.bb	57b54499e81b93e5490888431ddaae8098212856
+++ packages/bash/bash_3.0.bb	48de4a6d031cc4d6918f31c704c403be5fff4b4f
@@ -25,6 +25,7 @@ pkg_postinst () {
 }
 
 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
 }
============================================================
--- packages/bash/bash_3.2.bb	82089b9f06e01ef074d0a825f51f4396579a4028
+++ packages/bash/bash_3.2.bb	f98209f0fc4e7b5bb0b89433949527e7d14f208b
@@ -23,6 +23,7 @@ pkg_postinst () {
 }
 
 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
 }






More information about the Openembedded-commits mailing list