bash: create /etc/shells before using it
authorMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 20 Feb 2007 08:28:25 +0000 (08:28 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 20 Feb 2007 08:28:25 +0000 (08:28 +0000)
packages/bash/bash_3.0.bb
packages/bash/bash_3.2.bb

index 75da58b..2a8e0ee 100644 (file)
@@ -25,6 +25,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
 }
index e3d6b05..fd59b84 100644 (file)
@@ -23,6 +23,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
 }