gdm: tweak initscript and add grep to depends since busybox grep doesn't do -w
authorKoen Kooi <koen@openembedded.org>
Thu, 5 Nov 2009 12:35:50 +0000 (13:35 +0100)
committerKoen Kooi <koen@openembedded.org>
Thu, 5 Nov 2009 12:35:50 +0000 (13:35 +0100)
recipes/gnome/gdm-2.28.0/gdm
recipes/gnome/gdm_2.28.0.bb

index fed9c06..22ee7d4 100755 (executable)
@@ -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."
index 683773a..ac5d525 100644 (file)
@@ -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 \