From 374e1e06abd24382722d27dcc9d10637df94caef Mon Sep 17 00:00:00 2001 From: john30 Date: Wed, 6 Jan 2016 22:14:09 +0100 Subject: [PATCH] added postinst script to show instructions --- make_debian.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/make_debian.sh b/make_debian.sh index c1b4b8db..23feed5c 100755 --- a/make_debian.sh +++ b/make_debian.sh @@ -71,6 +71,17 @@ cat < $RELEASE/DEBIAN/dirs /etc/logrotate.d /usr/bin EOF +cat < $RELEASE/DEBIAN/postinst +#!/bin/sh +echo "Instructions:" +echo "1. Edit /etc/default/ebusd if necessary" +echo " (especially if your device is not /dev/ttyUSB0)" +echo "2. Place CSV configuration files in /etc/ebusd/" +echo " (see https://github.com/john30/ebusd-configuration)" +echo "3. To tart the daemon, enter 'service ebusd start'" +echo "4. Check the log file /var/log/ebusd.log" +EOF +chmod 755 $RELEASE/DEBIAN/postinst dpkg -b $RELEASE || exit 1 mv ebusd-$VERSION.deb "../$PACKAGE" || exit 1