diff options
author | Heinz Wiesinger <HMWiesinger@gmx.at> | 2010-05-11 22:53:14 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:53:14 +0200 |
commit | e5ed38612fc7827ac27066118ff52e4d75b79ea9 (patch) | |
tree | a0e4ad0cfafe9472e4dcb9992c0b1c36812ed073 /audio/pulseaudio/doinst.sh | |
parent | a7d7b8d43498205f82064722efb151fb72504f13 (diff) | |
download | slackbuilds-e5ed38612fc7827ac27066118ff52e4d75b79ea9.tar.gz |
audio/pulseaudio: Added to 12.1 repository
Diffstat (limited to 'audio/pulseaudio/doinst.sh')
-rw-r--r-- | audio/pulseaudio/doinst.sh | 17 |
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 + |