diff options
Diffstat (limited to 'audio/pulseaudio/doinst.sh')
-rw-r--r-- | audio/pulseaudio/doinst.sh | 13 |
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 |