diff options
author | Rudolf J Streif <rstreif@jaguarlandrover.com> | 2016-02-19 19:00:24 +0000 |
---|---|---|
committer | Rudolf J Streif <rstreif@jaguarlandrover.com> | 2016-02-19 19:00:24 +0000 |
commit | abee27880cb70cbc755a1bba0f5f0721159bfff8 (patch) | |
tree | ac5c1ebbdbbf2211588f126059dd382bbba136df /raspbian_template/rvi.postinst | |
parent | e705de160d54b9a73d7d7d9a18af44bf49d3c730 (diff) | |
download | rvi_core-abee27880cb70cbc755a1bba0f5f0721159bfff8.tar.gz |
Added template for Raspbian build and packaging
Added raspbian_template directory which contains the Debian
build and packaging for Raspbian. Added raspbian_package
target to makefile.
Signed-off-by: Rudolf J Streif <rstreif@jaguarlandrover.com>
Diffstat (limited to 'raspbian_template/rvi.postinst')
-rw-r--r-- | raspbian_template/rvi.postinst | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/raspbian_template/rvi.postinst b/raspbian_template/rvi.postinst new file mode 100644 index 0000000..10c11fe --- /dev/null +++ b/raspbian_template/rvi.postinst @@ -0,0 +1,45 @@ +#!/bin/sh +# postinst script for rvi +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +# source debconf library +. /usr/share/debconf/confmodule + +case "$1" in + + configure) + # Set up our config + cat /proc/sys/kernel/random/uuid > /etc/rvi/device_id + echo "RVI Device ID set to $(cat /etc/rvi/device_id) in /etc/rvi/device_id" + #DEBHELPER# + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; + +esac + +db_stop + +exit 0 |