summaryrefslogtreecommitdiff
path: root/debian/libmm-sound-0.postinst
blob: 70bade0c5f4266a7b02e2d84dc4792c78d41cd02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

echo "postinst: make vconf keys"
if [ ${USER} = "root" ] 
then
/usr/bin/vconftool set -t int db/volume/system 5 -g 29
/usr/bin/vconftool set -t int db/volume/notification 7 -g 29
/usr/bin/vconftool set -t int db/volume/alarm 6 -g 29
/usr/bin/vconftool set -t int db/volume/ringtone 13 -g 29
/usr/bin/vconftool set -t int db/volume/media 7 -g 29
/usr/bin/vconftool set -t int db/volume/call 7 -g 29
/usr/bin/vconftool set -t int db/volume/fixed 0 -g 29
/usr/bin/vconftool set -t int db/volume/java 11 -g 29
/usr/bin/vconftool set -t int memory/Sound/RoutePolicy 0 -i -g 29
else
/usr/bin/vconftool set -t int db/volume/system 5
/usr/bin/vconftool set -t int db/volume/notification 7
/usr/bin/vconftool set -t int db/volume/alarm 6
/usr/bin/vconftool set -t int db/volume/ringtone 13
/usr/bin/vconftool set -t int db/volume/media 7
/usr/bin/vconftool set -t int db/volume/call 7
/usr/bin/vconftool set -t int db/volume/fixed 0
/usr/bin/vconftool set -t int db/volume/java 11
/usr/bin/vconftool set -t int memory/Sound/RoutePolicy 0 -i
fi

if [ -n "`env|grep SBOX`" ]; then
    echo "postinst: sbox installation skip lauching daemon"
else
	echo "postinst: run sound server again"
	/usr/bin/sound_server -S&
fi