diff options
author | Magnus Feuer <mfeuer@jaguarllandrover.com> | 2015-11-28 20:37:29 -0800 |
---|---|---|
committer | Magnus Feuer <mfeuer@jaguarllandrover.com> | 2015-11-28 20:37:29 -0800 |
commit | 4fca86d9c039efca14d44ee60a567b3ee22d0191 (patch) | |
tree | 69d105019e7a375c9477591ccce8b22f1d4054c2 | |
parent | 28cf007b89824cc30e073e1c3adf30decd5dd894 (diff) | |
download | rvi_core-4fca86d9c039efca14d44ee60a567b3ee22d0191.tar.gz |
Added missing postinstall script
-rw-r--r-- | debian/rvi.postinst | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/debian/rvi.postinst b/debian/rvi.postinst new file mode 100644 index 0000000..6658e50 --- /dev/null +++ b/debian/rvi.postinst @@ -0,0 +1,50 @@ +#!/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 for apache + 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" + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +db_stop + +exit 0 |