summaryrefslogtreecommitdiff
path: root/debian/libaudiosessionmgr-0.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/libaudiosessionmgr-0.preinst')
-rw-r--r--debian/libaudiosessionmgr-0.preinst11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/libaudiosessionmgr-0.preinst b/debian/libaudiosessionmgr-0.preinst
new file mode 100644
index 0000000..41b5b2f
--- /dev/null
+++ b/debian/libaudiosessionmgr-0.preinst
@@ -0,0 +1,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