postinst, postrm, prerm scripts
[nowplayingd] / debian / prerm
diff --git a/debian/prerm b/debian/prerm
new file mode 100644 (file)
index 0000000..0e5a1bd
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+DAEMON=/usr/bin/nowplayingd
+DSMETOOL=/usr/sbin/dsmetool
+DSMETOOL_PARAMETERS="-k"
+
+if [ -x $DAEMON ]; then
+       echo "Stopping nowplayingd..."
+       $DSMETOOL $DSMETOOL_PARAMETERS $DAEMON || true
+fi