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/asound.conf.new
( cd usr/lib ; rm -rf libasound.so )
( cd usr/lib ; ln -sf libasound.so.2.0.0 libasound.so )
( cd usr/lib ; rm -rf libasound.so.2 )
( cd usr/lib ; ln -sf libasound.so.2.0.0 libasound.so.2 )
( cd usr/lib ; rm -rf libatopology.so )
( cd usr/lib ; ln -sf libatopology.so.2.0.0 libatopology.so )
( cd usr/lib ; rm -rf libatopology.so.2 )
( cd usr/lib ; ln -sf libatopology.so.2.0.0 libatopology.so.2 )
( cd usr/share/alsa/ucm/TECLAST-X80Pro-Defaultstring-CherryTrailCR ; rm -rf TECLAST-X80Pro-Defaultstring-CherryTrailCR.conf )
( cd usr/share/alsa/ucm/TECLAST-X80Pro-Defaultstring-CherryTrailCR ; ln -sf ../chtrt5645-mono-speaker-analog-mic/chtrt5645-mono-speaker-analog-mic.conf TECLAST-X80Pro-Defaultstring-CherryTrailCR.conf )
( cd usr/share/alsa/ucm/gpd-win-pocket-rt5645 ; rm -rf gpd-win-pocket-rt5645.conf )
( cd usr/share/alsa/ucm/gpd-win-pocket-rt5645 ; ln -sf ../chtrt5645-mono-speaker-analog-mic/chtrt5645-mono-speaker-analog-mic.conf gpd-win-pocket-rt5645.conf )
