#!/bin/sh
# (C) MandrakeSoft
# Chmouel Boudjnah <chmouel@mandrakesoft.com>

# Source function library.
. /etc/init.d/functions

SourceIfNotEmpty /etc/profile.d/kde.sh

[ -n "$KDEDIR" ] || KDEDIR=/usr

if [ -x $KDEDIR/bin/kdmdesktop ];then
#      /usr/bin/kdmdesktop
# Commented above line and added next line because of kdedesktop issues 
# fixes background.
      /usr/X11R6/bin/xsetroot -solid "#666699"
else
      /usr/X11R6/bin/xsetroot -solid "#666699"
      /usr/X11R6/bin/xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
fi

ExecIfExecutable /etc/X11/xinit/fixkeyboard
