default_install  &&
if [[ -d kdm-3.141594 ]]; then
  # Restore backuped kdm dir
  echo "Restoring configuration files..."                                           &&
  mv $INSTALL_ROOT/usr/share/config/kdm/backgroundrc kdm-3.141594/backgroundrc.new  &&
  mv $INSTALL_ROOT/usr/share/config/kdm/kdmrc kdm-3.141594/kdmrc.new  &&
  mv kdm-3.141594/{background,kdm}rc $INSTALL_ROOT/usr/share/config/kdm/  &&
  install_config_file kdm-3.141594/backgroundrc.new $INSTALL_ROOT/usr/share/config/kdm/backgroundrc  &&
  install_config_file kdm-3.141594/kdmrc.new $INSTALL_ROOT/usr/share/config/kdm/kdmrc  &&
  rm -r kdm-3.141594
fi &&
if [[ $SMGL_THEME == "y" ]]; then
  if [[ ! -e $INSTALL_ROOT/usr/share/apps/ksplash/Themes/SourceMage ]]; then
    mkdir $INSTALL_ROOT/usr/share/apps/ksplash/Themes/SourceMage
  fi &&
  for file in SourceMage*; do
    mv $file $INSTALL_ROOT/usr/share/apps/ksplash/Themes/SourceMage/${file#*\\}
  done
fi  &&

mkdir -p $INSTALL_ROOT/usr/share/xsessions                        &&
install  -m 0644  -o root  -g root  $SCRIPT_DIRECTORY/kde.desktop  \
                  $INSTALL_ROOT/usr/share/xsessions
