summaryrefslogtreecommitdiff
path: root/audio/pulseaudio/doinst.sh
diff options
context:
space:
mode:
authorcrocket <crockabiscuit@gmail.com>2011-10-23 13:11:53 -0500
committerNiels Horn <niels.horn@slackbuilds.org>2011-11-04 22:02:24 -0200
commit4e19a2eb824353e0e397cbe4991d1c5b7215cc4a (patch)
treeac81d1043064d927c5e23ac1185bc5bd368839c6 /audio/pulseaudio/doinst.sh
parent11c0915bd685f853331fc4c347c026acb0c32c61 (diff)
downloadslackbuilds-4e19a2eb824353e0e397cbe4991d1c5b7215cc4a.tar.gz
audio/pulseaudio: Updated for version 1.1.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'audio/pulseaudio/doinst.sh')
-rw-r--r--audio/pulseaudio/doinst.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/pulseaudio/doinst.sh b/audio/pulseaudio/doinst.sh
index 8fa296faf5..795ff51137 100644
--- a/audio/pulseaudio/doinst.sh
+++ b/audio/pulseaudio/doinst.sh
@@ -11,6 +11,19 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ config $NEW
+}
+
+
config etc/pulse/client.conf.new
config etc/pulse/default.pa.new
config etc/pulse/daemon.conf.new
+preserve_perms etc/rc.d/rc.pulseaudio.new