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