Patchwork [V1,2/2] screen: add pkg_postinst to register entry to /etc/shells

login
register
mail settings
Submitter Ming Liu
Date Oct. 17, 2013, 2:04 a.m.
Message ID <1381975446-25671-2-git-send-email-ming.liu@windriver.com>
Download mbox | patch
Permalink /patch/60053/
State New
Headers show

Comments

Ming Liu - Oct. 17, 2013, 2:04 a.m.
Signed-off-by: Ming Liu <ming.liu@windriver.com>
---
 meta/recipes-extended/screen/screen_4.0.3.bb | 5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/meta/recipes-extended/screen/screen_4.0.3.bb b/meta/recipes-extended/screen/screen_4.0.3.bb
index 1a7eb20..81e418b 100644
--- a/meta/recipes-extended/screen/screen_4.0.3.bb
+++ b/meta/recipes-extended/screen/screen_4.0.3.bb
@@ -41,3 +41,8 @@  do_install_append () {
 		fi
 	done
 }
+
+pkg_postinst_${PN} () {
+	touch $D${sysconfdir}/shells
+	grep -q "${bindir}/screen" $D${sysconfdir}/shells || echo ${bindir}/screen >> $D${sysconfdir}/shells
+}