config() {
  NEW="$1"
  OLD="$(dirname $NEW)/$(basename $NEW .new)"
  # If there's no config file by that name, mv it over:
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
    # toss the redundant copy
    rm $NEW
  fi
  # Otherwise, we leave the .new copy for the admin to consider...
}

config etc/pam.d/kde.new
( cd usr/bin ; rm -rf lookandfeeltool )
( cd usr/bin ; ln -sf /usr/bin/plasma-apply-lookandfeel lookandfeeltool )
( cd usr/lib64 ; rm -rf libcolorcorrect.so )
( cd usr/lib64 ; ln -sf libcolorcorrect.so.5 libcolorcorrect.so )
( cd usr/lib64 ; rm -rf libcolorcorrect.so.5 )
( cd usr/lib64 ; ln -sf libcolorcorrect.so.5.25.3 libcolorcorrect.so.5 )
( cd usr/lib64 ; rm -rf libkfontinst.so )
( cd usr/lib64 ; ln -sf libkfontinst.so.5 libkfontinst.so )
( cd usr/lib64 ; rm -rf libkfontinst.so.5 )
( cd usr/lib64 ; ln -sf libkfontinst.so.5.25.3 libkfontinst.so.5 )
( cd usr/lib64 ; rm -rf libkfontinstui.so )
( cd usr/lib64 ; ln -sf libkfontinstui.so.5 libkfontinstui.so )
( cd usr/lib64 ; rm -rf libkfontinstui.so.5 )
( cd usr/lib64 ; ln -sf libkfontinstui.so.5.25.3 libkfontinstui.so.5 )
( cd usr/lib64 ; rm -rf libkworkspace5.so )
( cd usr/lib64 ; ln -sf libkworkspace5.so.5 libkworkspace5.so )
( cd usr/lib64 ; rm -rf libkworkspace5.so.5 )
( cd usr/lib64 ; ln -sf libkworkspace5.so.5.25.3 libkworkspace5.so.5 )
( cd usr/lib64 ; rm -rf libnotificationmanager.so )
( cd usr/lib64 ; ln -sf libnotificationmanager.so.1 libnotificationmanager.so )
( cd usr/lib64 ; rm -rf libnotificationmanager.so.1 )
( cd usr/lib64 ; ln -sf libnotificationmanager.so.5.25.3 libnotificationmanager.so.1 )
( cd usr/lib64 ; rm -rf libplasma-geolocation-interface.so )
( cd usr/lib64 ; ln -sf libplasma-geolocation-interface.so.5 libplasma-geolocation-interface.so )
( cd usr/lib64 ; rm -rf libplasma-geolocation-interface.so.5 )
( cd usr/lib64 ; ln -sf libplasma-geolocation-interface.so.5.25.3 libplasma-geolocation-interface.so.5 )
( cd usr/lib64 ; rm -rf libtaskmanager.so )
( cd usr/lib64 ; ln -sf libtaskmanager.so.6 libtaskmanager.so )
( cd usr/lib64 ; rm -rf libtaskmanager.so.6 )
( cd usr/lib64 ; ln -sf libtaskmanager.so.5.25.3 libtaskmanager.so.6 )
( cd usr/lib64 ; rm -rf libweather_ion.so )
( cd usr/lib64 ; ln -sf libweather_ion.so.7 libweather_ion.so )
( cd usr/lib64 ; rm -rf libweather_ion.so.7 )
( cd usr/lib64 ; ln -sf libweather_ion.so.7.0.0 libweather_ion.so.7 )
( cd usr/lib64/qt5/plugins/plasma/kcminit ; rm -rf kcm_fonts_init.so )
( cd usr/lib64/qt5/plugins/plasma/kcminit ; ln -sf ../kcms/systemsettings/kcm_fonts.so kcm_fonts_init.so )
( cd usr/lib64/qt5/plugins/plasma/kcminit ; rm -rf kcm_style_init.so )
( cd usr/lib64/qt5/plugins/plasma/kcminit ; ln -sf ../kcms/systemsettings/kcm_style.so kcm_style_init.so )
