default_install  &&
if [ -d "$TMP_DIR/kdm" ]; then
  # Restore backuped kdm dir
  echo "Restoring configuration files..."                                           &&
  mv $INSTALL_ROOT/usr/share/config/kdm/backgroundrc $TMP_DIR/kdm/backgroundrc.new  &&
  mv $INSTALL_ROOT/usr/share/config/kdm/kdmrc $TMP_DIR/kdm/kdmrc.new  &&
  mv $TMP_DIR/kdm/{background,kdm}rc $INSTALL_ROOT/usr/share/config/kdm/  &&
  install_config_file $TMP_DIR/kdm/backgroundrc.new $INSTALL_ROOT/usr/share/config/kdm/backgroundrc  &&
  install_config_file $TMP_DIR/kdm/kdmrc.new $INSTALL_ROOT/usr/share/config/kdm/kdmrc  &&
  rm -r $TMP_DIR/kdm
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  &&

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