summaryrefslogtreecommitdiff
path: root/debian/libaudiosessionmgr-0.preinst
blob: 41b5b2f98294d0900b393ea6ccf3ad6d5e572297 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if [ -n "`env|grep SBOX`" ]; then
    echo "postinst: sbox installation skip lauching daemon"
else
	PID=`/bin/pidof audio-session-mgr-server`
	if [ -n "$PID" ]; then
		echo "preinst: kill current audio-session-mgr-server"
		/usr/bin/killall -9 audio-session-mgr-server
	fi
fi