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 kcminit_startup )
( cd usr/bin ; ln -sf kcminit kcminit_startup )
( cd usr/bin ; rm -rf lookandfeeltool )
( cd usr/bin ; ln -sf /usr/bin/plasma-apply-lookandfeel lookandfeeltool )
( cd usr/lib64 ; rm -rf libbatterycontrol.so )
( cd usr/lib64 ; ln -sf libbatterycontrol.so.6 libbatterycontrol.so )
( cd usr/lib64 ; rm -rf libbatterycontrol.so.6 )
( cd usr/lib64 ; ln -sf libbatterycontrol.so.6.6.3 libbatterycontrol.so.6 )
( cd usr/lib64 ; rm -rf libkfontinst.so )
( cd usr/lib64 ; ln -sf libkfontinst.so.6 libkfontinst.so )
( cd usr/lib64 ; rm -rf libkfontinst.so.6 )
( cd usr/lib64 ; ln -sf libkfontinst.so.6.6.3 libkfontinst.so.6 )
( cd usr/lib64 ; rm -rf libkfontinstui.so )
( cd usr/lib64 ; ln -sf libkfontinstui.so.6 libkfontinstui.so )
( cd usr/lib64 ; rm -rf libkfontinstui.so.6 )
( cd usr/lib64 ; ln -sf libkfontinstui.so.6.6.3 libkfontinstui.so.6 )
( cd usr/lib64 ; rm -rf libklipper.so )
( cd usr/lib64 ; ln -sf libklipper.so.6 libklipper.so )
( cd usr/lib64 ; rm -rf libklipper.so.6 )
( cd usr/lib64 ; ln -sf libklipper.so.6.6.3 libklipper.so.6 )
( cd usr/lib64 ; rm -rf libklookandfeel.so )
( cd usr/lib64 ; ln -sf libklookandfeel.so.6 libklookandfeel.so )
( cd usr/lib64 ; rm -rf libklookandfeel.so.6 )
( cd usr/lib64 ; ln -sf libklookandfeel.so.6.6.3 libklookandfeel.so.6 )
( cd usr/lib64 ; rm -rf libkmpris.so.6 )
( cd usr/lib64 ; ln -sf libkmpris.so.6.6.3 libkmpris.so.6 )
( cd usr/lib64 ; rm -rf libkworkspace6.so )
( cd usr/lib64 ; ln -sf libkworkspace6.so.6 libkworkspace6.so )
( cd usr/lib64 ; rm -rf libkworkspace6.so.6 )
( cd usr/lib64 ; ln -sf libkworkspace6.so.6.6.3 libkworkspace6.so.6 )
( 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.6.6.3 libnotificationmanager.so.1 )
( 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.6.6.3 libtaskmanager.so.6 )
( cd usr/lib64/qt6/plugins/plasma/kcminit ; rm -rf kcm_fonts_init.so )
( cd usr/lib64/qt6/plugins/plasma/kcminit ; ln -sf ../kcms/systemsettings/kcm_fonts.so kcm_fonts_init.so )
( cd usr/lib64/qt6/plugins/plasma/kcminit ; rm -rf kcm_style_init.so )
( cd usr/lib64/qt6/plugins/plasma/kcminit ; ln -sf ../kcms/systemsettings/kcm_style.so kcm_style_init.so )
