#!/bin/sh
# Xsetup for Red Hat Linux
# Copyright (c) 1999, 2000, 2001 Red Hat, Inc.

/usr/X11R6/bin/xsetroot -solid "#5477A0"

if [ -z "$RUNNING_UNDER_GDM" ] ; then
  /sbin/pidof -s kdm &> /dev/null && [ $? -eq 0 -a -x /usr/bin/kdmdesktop ] && /usr/bin/kdmdesktop && sleep 1s

  # only set the background if the xsri program is installed
  if [ -x /usr/bin/xsri -a -f /etc/X11/xsrirc ]; then
      /usr/bin/xsri --redhat-login --set
  fi
fi
