summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authordamiano1999-04-26 15:26:06 +0000
committerdamiano1999-04-26 15:26:06 +0000
commit4782c96923bd5cc9b072b0e672f1420c93fd19dd (patch)
tree87bf5d3a26976e95c188a94f06f6019b1ccd98a7 /debian/postinst
parent0a462da394768938733d34b4ca724fb9260be51e (diff)
downloadirbox-4782c96923bd5cc9b072b0e672f1420c93fd19dd.zip
irbox-4782c96923bd5cc9b072b0e672f1420c93fd19dd.tar.gz
irbox-4782c96923bd5cc9b072b0e672f1420c93fd19dd.tar.bz2
irbox-4782c96923bd5cc9b072b0e672f1420c93fd19dd.tar.xz
Debianisation
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#