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