]> code.ossystems Code Review - openembedded-core.git/commitdiff
x11-common: Remove unused Xinit file, remove hardcoded user assumptions
authorRichard Purdie <rpurdie@linux.intel.com>
Wed, 27 May 2009 10:44:42 +0000 (11:44 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 27 May 2009 10:44:42 +0000 (11:44 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/packages/x11-common/x11-common/etc/X11/Xinit [deleted file]
meta/packages/x11-common/x11-common/etc/X11/Xserver
meta/packages/x11-common/x11-common/etc/X11/Xsession
meta/packages/x11-common/x11-common_0.1.bb

diff --git a/meta/packages/x11-common/x11-common/etc/X11/Xinit b/meta/packages/x11-common/x11-common/etc/X11/Xinit
deleted file mode 100644 (file)
index f566ffe..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-# 
-
-export USER=root
-export HOME=/home/root
-if [ ! -d $HOME ] && [ -d /root ]; then
-  HOME=/root
-fi
-export XAPPLRESDIR=/usr/X11R6/lib/app-defaults
-export XFILESEARCHPATH=./%N%S%C.ad:/usr/X11R6/lib/X11/%L/%T/%N%S%C:/usr/X11R6/lib/X11/%l/%T/%N%S%C:/usr/X11R6/lib/X11/%T/%N%S%C:./%N%S.ad:/usr/X11R6/lib/X11/%L/%T/%N%S:/usr/X11R6/lib/X11/%l/%T/%N%S:/usr/X11R6/lib/X11/%T/%N%S:/usr/local/lib/X11/app-defaults/%N%S%C.ad
-
-export PATH=$PATH:/usr/X11R6/bin
-
-SYSSESSIONDIR=/etc/X11/Xinit.d
-
-exec run-parts $SYSSESSIONDIR
index 689d522d09a2a95a633db729c958f85a40376c42..9a0986ad61fd1998c83d9aa9a936cf3d9850fb04 100644 (file)
@@ -1,8 +1,6 @@
 #!/bin/sh
 #
 
-. /etc/formfactor/config
-
 # note xinit needs full server path
 XSERVER=/usr/bin/Xipaq
 if [ -f /usr/bin/Xfbdev ]; then
@@ -28,12 +26,12 @@ module_id() {
     awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
 }
 
-export USER=root
-
 ARGS=" -br -pn"
 
 if [ "$XSERVER" != "/usr/bin/Xorg" ]; then
 
+       . /etc/formfactor/config
+
         # use ucb 1x00 touchscreen if present
         if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/touchscreen/ucb1x00 ]; then
           ARGS="$ARGS -mouse /dev/touchscreen/ucb1x00"
index 8f3e5edd7d9969765db41a4390a308e179957b25..6441596b04f42b6d04c45ac0c1ed98cd738f98f0 100644 (file)
@@ -1,11 +1,5 @@
 #!/bin/sh
 
-HOME_VOLATILE=/home/$USER/ramdisk
-export HOME_VOLATILE
-
-HOME=/home/$USER
-export HOME
-
 if [ -x /usr/bin/dbus-launch ]; then
     # As this is the X session script, always start a new DBus session.
     eval `dbus-launch --sh-syntax --exit-with-session`
index 74e620bd16526b72d6db01c58b1383b74835c12a..75d9836198dfa6645470ebe1e3e466849ed552b0 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Common X11 scripts"
 LICENSE = "GPL"
 SECTION = "x11"
 RDEPENDS_${PN} = "xmodmap xdpyinfo xtscal xinit formfactor"
-PR = "r36"
+PR = "r37"
 
 SRC_URI = "file://etc"
 S = ${WORKDIR}