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/libblockdev/conf.d/00-default.cfg.new
config etc/libblockdev/conf.d/10-lvm-dbus.cfg.new
( cd usr/lib64 ; rm -rf libbd_btrfs.so )
( cd usr/lib64 ; ln -sf libbd_btrfs.so.2.0.0 libbd_btrfs.so )
( cd usr/lib64 ; rm -rf libbd_btrfs.so.2 )
( cd usr/lib64 ; ln -sf libbd_btrfs.so.2.0.0 libbd_btrfs.so.2 )
( cd usr/lib64 ; rm -rf libbd_crypto.so )
( cd usr/lib64 ; ln -sf libbd_crypto.so.2.0.0 libbd_crypto.so )
( cd usr/lib64 ; rm -rf libbd_crypto.so.2 )
( cd usr/lib64 ; ln -sf libbd_crypto.so.2.0.0 libbd_crypto.so.2 )
( cd usr/lib64 ; rm -rf libbd_fs.so )
( cd usr/lib64 ; ln -sf libbd_fs.so.2.0.0 libbd_fs.so )
( cd usr/lib64 ; rm -rf libbd_fs.so.2 )
( cd usr/lib64 ; ln -sf libbd_fs.so.2.0.0 libbd_fs.so.2 )
( cd usr/lib64 ; rm -rf libbd_kbd.so )
( cd usr/lib64 ; ln -sf libbd_kbd.so.2.0.0 libbd_kbd.so )
( cd usr/lib64 ; rm -rf libbd_kbd.so.2 )
( cd usr/lib64 ; ln -sf libbd_kbd.so.2.0.0 libbd_kbd.so.2 )
( cd usr/lib64 ; rm -rf libbd_loop.so )
( cd usr/lib64 ; ln -sf libbd_loop.so.2.0.0 libbd_loop.so )
( cd usr/lib64 ; rm -rf libbd_loop.so.2 )
( cd usr/lib64 ; ln -sf libbd_loop.so.2.0.0 libbd_loop.so.2 )
( cd usr/lib64 ; rm -rf libbd_lvm-dbus.so )
( cd usr/lib64 ; ln -sf libbd_lvm-dbus.so.2.0.0 libbd_lvm-dbus.so )
( cd usr/lib64 ; rm -rf libbd_lvm-dbus.so.2 )
( cd usr/lib64 ; ln -sf libbd_lvm-dbus.so.2.0.0 libbd_lvm-dbus.so.2 )
( cd usr/lib64 ; rm -rf libbd_lvm.so )
( cd usr/lib64 ; ln -sf libbd_lvm.so.2.0.0 libbd_lvm.so )
( cd usr/lib64 ; rm -rf libbd_lvm.so.2 )
( cd usr/lib64 ; ln -sf libbd_lvm.so.2.0.0 libbd_lvm.so.2 )
( cd usr/lib64 ; rm -rf libbd_mdraid.so )
( cd usr/lib64 ; ln -sf libbd_mdraid.so.2.0.0 libbd_mdraid.so )
( cd usr/lib64 ; rm -rf libbd_mdraid.so.2 )
( cd usr/lib64 ; ln -sf libbd_mdraid.so.2.0.0 libbd_mdraid.so.2 )
( cd usr/lib64 ; rm -rf libbd_mpath.so )
( cd usr/lib64 ; ln -sf libbd_mpath.so.2.0.0 libbd_mpath.so )
( cd usr/lib64 ; rm -rf libbd_mpath.so.2 )
( cd usr/lib64 ; ln -sf libbd_mpath.so.2.0.0 libbd_mpath.so.2 )
( cd usr/lib64 ; rm -rf libbd_nvdimm.so )
( cd usr/lib64 ; ln -sf libbd_nvdimm.so.2.0.0 libbd_nvdimm.so )
( cd usr/lib64 ; rm -rf libbd_nvdimm.so.2 )
( cd usr/lib64 ; ln -sf libbd_nvdimm.so.2.0.0 libbd_nvdimm.so.2 )
( cd usr/lib64 ; rm -rf libbd_part.so )
( cd usr/lib64 ; ln -sf libbd_part.so.2.0.0 libbd_part.so )
( cd usr/lib64 ; rm -rf libbd_part.so.2 )
( cd usr/lib64 ; ln -sf libbd_part.so.2.0.0 libbd_part.so.2 )
( cd usr/lib64 ; rm -rf libbd_part_err.so )
( cd usr/lib64 ; ln -sf libbd_part_err.so.2.0.0 libbd_part_err.so )
( cd usr/lib64 ; rm -rf libbd_part_err.so.2 )
( cd usr/lib64 ; ln -sf libbd_part_err.so.2.0.0 libbd_part_err.so.2 )
( cd usr/lib64 ; rm -rf libbd_swap.so )
( cd usr/lib64 ; ln -sf libbd_swap.so.2.0.0 libbd_swap.so )
( cd usr/lib64 ; rm -rf libbd_swap.so.2 )
( cd usr/lib64 ; ln -sf libbd_swap.so.2.0.0 libbd_swap.so.2 )
( cd usr/lib64 ; rm -rf libbd_utils.so )
( cd usr/lib64 ; ln -sf libbd_utils.so.2.1.0 libbd_utils.so )
( cd usr/lib64 ; rm -rf libbd_utils.so.2 )
( cd usr/lib64 ; ln -sf libbd_utils.so.2.1.0 libbd_utils.so.2 )
( cd usr/lib64 ; rm -rf libbd_vdo.so )
( cd usr/lib64 ; ln -sf libbd_vdo.so.2.0.0 libbd_vdo.so )
( cd usr/lib64 ; rm -rf libbd_vdo.so.2 )
( cd usr/lib64 ; ln -sf libbd_vdo.so.2.0.0 libbd_vdo.so.2 )
( cd usr/lib64 ; rm -rf libblockdev.so )
( cd usr/lib64 ; ln -sf libblockdev.so.2.0.0 libblockdev.so )
( cd usr/lib64 ; rm -rf libblockdev.so.2 )
( cd usr/lib64 ; ln -sf libblockdev.so.2.0.0 libblockdev.so.2 )
