echo Now installing MODELS@HOME for Linux on SuSE 7.2 and KDM

echo Copying libraries to /usr/lib
chmod 755 libSDL*
cp libSDL* /usr/lib/.

if [ ! -e /usr/lib/X11/xdm/Xsetup.backup ]; then
  echo Storing backup of /usr/lib/X11/xdm/Xsetup as Xsetup.backup
  mv /usr/lib/X11/xdm/Xsetup /usr/lib/X11/xdm/Xsetup.backup
fi
echo Installing new Xsetup
cp Xsetup_SU72 /usr/lib/X11/xdm/Xsetup

if [ ! -e /usr/lib/X11/xdm/Xsession.backup ]; then
  echo Storing backup of /usr/lib/X11/xdm/Xsession as Xsession.backup
  mv /usr/lib/X11/xdm/Xsession /usr/lib/X11/xdm/Xsession.backup
fi
echo Installing new Xsession
cp Xsession_SU72 /usr/lib/X11/xdm/Xsession

echo Installing new XScreenSaver configuration file
cp XScreenSaver_SU72 /usr/lib/X11/app-defaults/XScreenSaver

echo Installing xsri
cp xsri /usr/bin/xsri

echo Finished






