summaryrefslogtreecommitdiff
path: root/debian/libmm-sound-0.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/libmm-sound-0.preinst')
-rw-r--r--debian/libmm-sound-0.preinst11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/libmm-sound-0.preinst b/debian/libmm-sound-0.preinst
new file mode 100644
index 0000000..1e7fc87
--- /dev/null
+++ b/debian/libmm-sound-0.preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -n "`env|grep SBOX`" ]; then
+ echo "postinst: sbox installation"
+else
+ PID=`/bin/pidof sound_server`
+ if [ -n "$PID" ]; then
+ echo "preinst: kill current sound server"
+ /usr/bin/killall -9 sound_server
+ fi
+fi