summaryrefslogtreecommitdiff
path: root/audio/pulseaudio/doinst.sh
diff options
context:
space:
mode:
authorHeinz Wiesinger <HMWiesinger@gmx.at>2010-05-11 22:53:14 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 22:53:14 +0200
commite5ed38612fc7827ac27066118ff52e4d75b79ea9 (patch)
treea0e4ad0cfafe9472e4dcb9992c0b1c36812ed073 /audio/pulseaudio/doinst.sh
parenta7d7b8d43498205f82064722efb151fb72504f13 (diff)
downloadslackbuilds-e5ed38612fc7827ac27066118ff52e4d75b79ea9.tar.gz
audio/pulseaudio: Added to 12.1 repository
Diffstat (limited to 'audio/pulseaudio/doinst.sh')
-rw-r--r--audio/pulseaudio/doinst.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/audio/pulseaudio/doinst.sh b/audio/pulseaudio/doinst.sh
new file mode 100644
index 0000000000..ebf55579d2
--- /dev/null
+++ b/audio/pulseaudio/doinst.sh
@@ -0,0 +1,17 @@
+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
+