First commit
[jenirok] / debian / postinst
diff --git a/debian/postinst b/debian/postinst
new file mode 100644 (file)
index 0000000..3eb2f3c
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+gtk-update-icon-cache -f /usr/share/icons/hicolor
+
+# Make jenirok autostart on boot if this is a new install
+oldversion="$2"
+if [ -z "$oldversion" ]; then
+  update-rc.d jenirokd defaults 99 >/dev/null
+fi
+
+/etc/init.d/jenirokd start
+
+exit 0