#!/bin/sh
# $XConsortium: Xsetup_0,v 1.3 93/09/28 14:30:31 gildea Exp $
#xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
#
# Add background by Kocil, 2003-12-28

# Fix backspace problem in login box:
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
if [ -f $sysmodmap ]; then
   /usr/X11R6/bin/xmodmap $sysmodmap
fi

# The background image
BACKGROUND=/usr/share/pixmaps/default.jpg

if [ -f $BACKGROUND ]; then
  # Use xv or xloadimage to set the background
  if [ -x /usr/X11R6/bin/xv ]; then
    /usr/X11R6/bin/xv -max -smooth -root -quit $BACKGROUND
  elif [ -x /usr/X11R6/bin/xloadimage ]; then                                       
    /usr/X11R6/bin/xloadimage -onroot -fullscreen $BACKGROUND
  else
    # no luck, only color
    /usr/X11R6/bin/xsetroot -solid SteelBlue
  fi
else
    /usr/X11R6/bin/xsetroot -solid SteelBlue
fi
