slackbuilds_ponce/audio/pulseaudio/doinst.sh
crocket df3d230047 audio/pulseaudio: Added (Pulse Audio Sound Server)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
2011-07-21 22:52:46 -05:00

16 lines
446 B
Bash

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/pulse/client.conf.new
config etc/pulse/default.pa.new
config etc/pulse/daemon.conf.new