Skip to contentSkip to conversation

base-files: add empty /etc/profile.d which can be filled by distro/machine profile scripts

RFC PATCH In review Martin Jansa 2 participants 2 messages Oct 27, 2010

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 base-files: add empty /etc/profile.d which can be filled by distro/machine profile scripts

* used for gtk_im_module.sh in SHR
* would be better to be able to fill it from more sources (maybe put profile.d.machine, profile.d.distro, profile.d directories and install all files to target profile.d), is it worth it?
* /etc/profile.d/empty is used to prevent install call not failing because /profile.d/* not found

---
 .../base-files/shr/profile.d/gtk_im_module.sh      |    1 +
 recipes/base-files/base-files_3.0.14.bb            |    3 +++
 2 files changed, 4 insertions(+), 0 deletions(-)
 create mode 100644 recipes/base-files/base-files/profile.d/empty
 create mode 100755 recipes/base-files/base-files/shr/profile.d/gtk_im_module.sh
recipes/base-files/base-files/profile.d/empty new file +0 -0
new file mode 100644
index 0000000..e69de29
recipes/base-files/base-files/shr/profile.d/gtk_im_module.sh new file +1 -0
new file mode 100755
index 0000000..29cf0db
@@ -0,0 +1 @@
+export GTK_IM_MODULE=xim
recipes/base-files/base-files_3.0.14.bb +3 -0
index f8d0778..3ebed70 100644
@@ -10,6 +10,7 @@ SRC_URI = " \
            file://inputrc \
            file://host.conf \
            file://profile \
+           file://profile.d \
            file://fstab \
            file://filesystems \
            file://issue.net \
@@ -116,6 +117,8 @@ do_install () {
         	install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems
         	install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd
         	install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile
+        	install -d 0755 ${D}${sysconfdir}/profile.d
+        	install -m 0755 ${WORKDIR}/profile.d/* ${D}${sysconfdir}/profile.d/
         	install -m 0755 ${WORKDIR}/share/dot.profile ${D}${sysconfdir}/skel/.profile
         	install -m 0755 ${WORKDIR}/share/dot.bashrc ${D}${sysconfdir}/skel/.bashrc
         	install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc
Signature · 1 line
1.7.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Martin Jansa

* used for gtk_im_module.sh in SHR
* would be better to be able to fill it from more sources (maybe put profile.d.machine, profile.d.distro, profile.d directories
and install all files to target profile.d), is it worth it?
* /etc/profile.d/empty is used to prevent install call not failing because /profile.d/* not found

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics