summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..75176e6
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+NC="/etc/irbox.conf"
+
+TWEAK="no"
+
+# only do this stuff if we're being called to configure a package
+if [ "$1" != "configure" ]
+then
+ exit 0
+fi
+
+# make sure we have an /etc/irbox.conf
+if [ -f $NC ]
+then
+ echo "An /etc/irbox.conf file already exists, and will be used to"
+ echo "configure irboxd. You may wish to review the contents of this"
+ echo "file for accuracy."
+ echo ""
+else
+ start-stop-daemon --stop --quiet --exec /usr/bin/irbox
+fi
+
+#DEBHELPER#