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...
}

for i in client.conf daemon.conf default.pa
do
        config etc/pulse/$i.new
done

( cd usr/lib ; rm -rf libpulse.so.0 )
( cd usr/lib ; ln -sf libpulse.so.0.0.0 libpulse.so.0 )
( cd usr/lib ; rm -rf libpulse.so )
( cd usr/lib ; ln -sf libpulse.so.0.0.0 libpulse.so )
( cd usr/lib ; rm -rf libpulse-simple.so.0 )
( cd usr/lib ; ln -sf libpulse-simple.so.0.0.0 libpulse-simple.so.0 )
( cd usr/lib ; rm -rf libpulse-simple.so )
( cd usr/lib ; ln -sf libpulse-simple.so.0.0.0 libpulse-simple.so )
( cd usr/lib ; rm -rf libpulse-browse.so.0 )
( cd usr/lib ; ln -sf libpulse-browse.so.0.0.0 libpulse-browse.so.0 )
( cd usr/lib ; rm -rf libpulse-browse.so )
( cd usr/lib ; ln -sf libpulse-browse.so.0.0.0 libpulse-browse.so )
( cd usr/lib ; rm -rf libpulse-mainloop-glib.so.0 )
( cd usr/lib ; ln -sf libpulse-mainloop-glib.so.0.0.0 libpulse-mainloop-glib.so.0 )
( cd usr/lib ; rm -rf libpulse-mainloop-glib.so )
( cd usr/lib ; ln -sf libpulse-mainloop-glib.so.0.0.0 libpulse-mainloop-glib.so )
( cd usr/lib ; rm -rf libpulse-mainloop-glib12.so.0 )
( cd usr/lib ; ln -sf libpulse-mainloop-glib12.so.0.0.0 libpulse-mainloop-glib12.so.0 )
( cd usr/lib ; rm -rf libpulse-mainloop-glib12.so )
( cd usr/lib ; ln -sf libpulse-mainloop-glib12.so.0.0.0 libpulse-mainloop-glib12.so )
( cd usr/lib ; rm -rf libpulsecore.so.0 )
( cd usr/lib ; ln -sf libpulsecore.so.0.0.1 libpulsecore.so.0 )
( cd usr/lib ; rm -rf libpulsecore.so )
( cd usr/lib ; ln -sf libpulsecore.so.0.0.1 libpulsecore.so )
( cd usr/bin ; rm -rf parec )
( cd usr/bin ; ln -sf pacat parec )
