[oe] patch base-files /etc/profile

Khem Raj raj.khem at gmail.com
Thu Apr 17 23:05:04 UTC 2008


Hi 

I was seeing that on Angstrom.2008 I was not getting TSLIB_TSDEVICE
environment variable set though it should be as it was
invoking /etc/profile.d/tslib.sh in /etc/profile. However the 'ls'
command in there was not really working well.

This patch fixes the problem. Now I see TALIB_TSDEVICE variable set
everytime.

OK for .dev ?

Thanks

-Khem

#
# old_revision [cc8daafda388ec1e484dc2e68e1599944893bc76]
#
# patch "packages/base-files/base-files/profile"
#  from [c1afd65b969f708eab144ec909358f3c8f22a411]
#    to [e24b90b96edb24d3af735f32c72528e6a01d617d]
# 
# patch "packages/base-files/base-files_3.0.14.bb"
#  from [a35cae8a2aa502d9f36ce35fcd2dddd9a86ce2c4]
#    to [3b4da947c2b76133142ee113622e6986e653f14a]
#
============================================================
--- packages/base-files/base-files/profile
c1afd65b969f708eab144ec909358f3c8f22a411
+++ packages/base-files/base-files/profile
e24b90b96edb24d3af735f32c72528e6a01d617d
@@ -20,8 +20,10 @@ if [ -d /etc/profile.d ]; then
 fi
 
 if [ -d /etc/profile.d ]; then
-  for i in `ls /etc/profile.d/`; do
-    . /etc/profile.d/$i
+  for i in /etc/profile.d/*.sh; do
+    if [ -r $i ]; then
+      . $i
+    fi
   done
   unset i
 fi
============================================================
--- packages/base-files/base-files_3.0.14.bb
a35cae8a2aa502d9f36ce35fcd2dddd9a86ce2c4
+++ packages/base-files/base-files_3.0.14.bb
3b4da947c2b76133142ee113622e6986e653f14a
@@ -1,7 +1,7 @@ PRIORITY = "required"
 DESCRIPTION = "Miscellaneous files for the base system."
 SECTION = "base"
 PRIORITY = "required"
-PR = "r77"
+PR = "r78"
 LICENSE = "GPL"
 
 SRC_URI = " \

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20080417/2dd8b153/attachment-0002.sig>


More information about the Openembedded-devel mailing list