#!/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.
      xsetroot -solid "#666699"
else
      xsetroot -solid "#666699"
      xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
fi

ExecIfExecutable /etc/X11/xinit/fixkeyboard
