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 libcolorcorrect.so )
( cd usr/lib ; ln -sf libcolorcorrect.so.5 libcolorcorrect.so )
( cd usr/lib ; rm -rf libcolorcorrect.so.5 )
( cd usr/lib ; ln -sf libcolorcorrect.so.5.27.11 libcolorcorrect.so.5 )
( cd usr/lib ; rm -rf libkfontinst.so )
( cd usr/lib ; ln -sf libkfontinst.so.5 libkfontinst.so )
( cd usr/lib ; rm -rf libkfontinst.so.5 )
( cd usr/lib ; ln -sf libkfontinst.so.5.27.11 libkfontinst.so.5 )
( cd usr/lib ; rm -rf libkfontinstui.so )
( cd usr/lib ; ln -sf libkfontinstui.so.5 libkfontinstui.so )
( cd usr/lib ; rm -rf libkfontinstui.so.5 )
( cd usr/lib ; ln -sf libkfontinstui.so.5.27.11 libkfontinstui.so.5 )
( cd usr/lib ; rm -rf libkworkspace5.so )
( cd usr/lib ; ln -sf libkworkspace5.so.5 libkworkspace5.so )
( cd usr/lib ; rm -rf libkworkspace5.so.5 )
( cd usr/lib ; ln -sf libkworkspace5.so.5.27.11 libkworkspace5.so.5 )
( 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.5.27.11 libnotificationmanager.so.1 )
( cd usr/lib ; rm -rf libplasma-geolocation-interface.so )
( cd usr/lib ; ln -sf libplasma-geolocation-interface.so.5 libplasma-geolocation-interface.so )
( cd usr/lib ; rm -rf libplasma-geolocation-interface.so.5 )
( cd usr/lib ; ln -sf libplasma-geolocation-interface.so.5.27.11 libplasma-geolocation-interface.so.5 )
( 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.5.27.11 libtaskmanager.so.6 )
( cd usr/lib ; rm -rf libweather_ion.so )
( cd usr/lib ; ln -sf libweather_ion.so.7 libweather_ion.so )
( cd usr/lib ; rm -rf libweather_ion.so.7 )
( cd usr/lib ; ln -sf libweather_ion.so.7.0.0 libweather_ion.so.7 )
( cd usr/lib/qt5/plugins/plasma/kcminit ; rm -rf kcm_fonts_init.so )
( cd usr/lib/qt5/plugins/plasma/kcminit ; ln -sf ../kcms/systemsettings/kcm_fonts.so kcm_fonts_init.so )
( cd usr/lib/qt5/plugins/plasma/kcminit ; rm -rf kcm_style_init.so )
( cd usr/lib/qt5/plugins/plasma/kcminit ; ln -sf ../kcms/systemsettings/kcm_style.so kcm_style_init.so )
