diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/gpe-dm/files/source-xsession-scripts.patch | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/gpe-dm/files/source-xsession-scripts.patch')
-rw-r--r-- | packages/gpe-dm/files/source-xsession-scripts.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/gpe-dm/files/source-xsession-scripts.patch b/packages/gpe-dm/files/source-xsession-scripts.patch index e69de29bb2..c92f230618 100644 --- a/packages/gpe-dm/files/source-xsession-scripts.patch +++ b/packages/gpe-dm/files/source-xsession-scripts.patch @@ -0,0 +1,27 @@ +--- gpe-dm-0.43/Xsession.old 2005-02-23 11:39:23.000000000 +0000 ++++ gpe-dm-0.43/Xsession 2005-02-23 12:21:28.011314968 +0000 +@@ -25,4 +25,23 @@ + SYSSESSIONDIR=/etc/X11/Xsession.d + fi + +-exec run-parts $SYSSESSIONDIR ++# Use run-parts to source every file in the session directory; we source ++# instead of executing so that the variables and functions defined above ++# are available to the scripts, and so that they can pass variables to each ++# other. ++ ++# Can't use run-parts like this, busybox doesn't support it. Use ls instead ++#SESSIONFILES=$(run-parts --list $SYSSESSIONDIR) ++ ++SESSIONFILES=`ls -X $SYSSESSIONDIR` ++if [ -n "$SESSIONFILES" ]; then ++ for SESSIONFILE in $SESSIONFILES; do ++ # Test if script is executable first before sourcing it ++ if [ -x "$SYSSESSIONDIR/$SESSIONFILE" ]; then ++ . $SYSSESSIONDIR/$SESSIONFILE ++ fi ++ done ++fi ++ ++exit 0 ++ |