#!/bin/sh
# (C) MandrakeSoft
# Chmouel Boudjnah <chmouel@mandrakesoft.com>
#
# $Id: Xsetup_0,v 1.11 2004/09/01 01:25:13 flepied Exp $

if [ -f /etc/profile.d/kde.sh ];then
 . /etc/profile.d/kde.sh
fi

if [ -r /usr/share/mdk/backgrounds/default.png -a -x /usr/bin/qiv ]; then
    /usr/bin/qiv -z /usr/share/mdk/backgrounds/default.png
else
    /usr/X11R6/bin/xsetroot -solid "#21449C"
fi

if [ -x /etc/X11/xinit/fixkeyboard ]; then
    /etc/X11/xinit/fixkeyboard
fi

if [ -x /etc/X11/xinit.d/numlock ]; then
    /etc/X11/xinit.d/numlock &
fi

for i in /etc/X11/xsetup.d/*.xsetup ; do
    [ -d $i ] && continue

    if [ -x $i ]; then
	if grep -q "# to be sourced" $i; then
	    . $i
	else
	    $i &
	fi
    fi
done

# Xsetup_0 ends here
