From 2b0e95fd5d1a4610f4bdc5b929500472562f7b37 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 5 Nov 2009 13:35:50 +0100 Subject: 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 deletion(-) (limited to 'recipes/gnome') diff --git a/recipes/gnome/gdm-2.28.0/gdm b/recipes/gnome/gdm-2.28.0/gdm index fed9c06ad7..22ee7d461d 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 683773a3ab..ac5d52505d 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 \ -- cgit 1.2.3-korg