#!/bin/sh # postinst script for rvi # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # 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