[oe-commits] Koen Kooi : gdm: tweak initscript and add grep to depends since busybox grep doesn't do -w

git version control git at git.openembedded.org
Sun Nov 8 16:28:13 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: 2b0e95fd5d1a4610f4bdc5b929500472562f7b37
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2b0e95fd5d1a4610f4bdc5b929500472562f7b37

Author: Koen Kooi <koen at openembedded.org>
Date:   Thu Nov  5 13:35:50 2009 +0100

gdm: tweak initscript and add grep to depends since busybox grep doesn't do -w

---

 recipes/gnome/gdm-2.28.0/gdm |   11 +++++++++++
 recipes/gnome/gdm_2.28.0.bb  |    4 +++-
 2 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/recipes/gnome/gdm-2.28.0/gdm b/recipes/gnome/gdm-2.28.0/gdm
index fed9c06..22ee7d4 100755
--- a/recipes/gnome/gdm-2.28.0/gdm
+++ b/recipes/gnome/gdm-2.28.0/gdm
@@ -32,10 +32,21 @@ DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
 case "$1" in
   start)
 	# make needed directories in volatile
+
+	if [ -e /var/log/gdm ] ; then 
+		rm -rf /var/log/gdm
+	fi
+
 	mkdir -m 01770 /var/log/gdm
 	chown gdm:gdm /var/log/gdm
+
+	if [ -e /tmp/.ICE-unix \ ; then 
+		rm -rf /tmp/.ICE-unix
+	fi
+
 	mkdir -m 01777 /tmp/.ICE-unix
 	chown root:root /tmp/.ICE-unix
+
         CONFIGURED_DAEMON=$(basename "$(cat $DEFAULT_DISPLAY_MANAGER_FILE 2> /dev/null)")
         if grep -wqs text /proc/cmdline; then
             echo "Not starting GNOME Display Manager (gdm); found 'text' in kernel commandline."
diff --git a/recipes/gnome/gdm_2.28.0.bb b/recipes/gnome/gdm_2.28.0.bb
index 683773a..ac5d525 100644
--- a/recipes/gnome/gdm_2.28.0.bb
+++ b/recipes/gnome/gdm_2.28.0.bb
@@ -3,10 +3,12 @@ LICENSE = "GPL"
 
 DEPENDS = "libcanberra libxklavier grep consolekit libpam gnome-doc-utils gtk+ libglade libgnomecanvas librsvg libxml2 libart-lgpl xrdb"
 
-PR = "r1"
+PR = "r2"
 
 inherit gnome update-rc.d
 
+RDEPENDS_${PN} += "grep"
+
 SRC_URI += " \
             file://cross-xdetection.diff;patch=1 \
             file://%gconf-tree.xml \





More information about the Openembedded-commits mailing list