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

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

SourceIfNotEmpty /etc/profile.d/kde.sh
SourceIfNotEmpty /etc/sysconfig/xinitrc

[ -n "$KDEDIR" ] || KDEDIR=/usr
[ -n "$XSETROOT" ] || XSETROOT='xsetroot -solid #666699'
[ -n "$XCONSOLE" ] || XCONSOLE='yes'

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

ExecIfExecutable /etc/X11/xinit/fixkeyboard
