diff options
author | crocket <crockabiscuit@gmail.com> | 2011-07-19 02:17:51 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-07-21 22:52:46 -0500 |
commit | df3d230047a608ca757c3cf2b07e5239fd22cbae (patch) | |
tree | 83679349d9fd4cd6dccd518f0c51fcae6ae12ff7 /audio/pulseaudio/doinst.sh | |
parent | 847dc4d53874fefa4e0861a11d1ec0c9a9d7244f (diff) | |
download | slackbuilds-df3d230047a608ca757c3cf2b07e5239fd22cbae.tar.gz |
audio/pulseaudio: Added (Pulse Audio Sound Server)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'audio/pulseaudio/doinst.sh')
-rw-r--r-- | audio/pulseaudio/doinst.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/pulseaudio/doinst.sh b/audio/pulseaudio/doinst.sh new file mode 100644 index 0000000000..8fa296faf5 --- /dev/null +++ b/audio/pulseaudio/doinst.sh @@ -0,0 +1,16 @@ +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 |