#!/bin/sh # postinst script for naskpass # # see: dh_installdeb(1) set -e . /usr/share/debconf/confmodule . /usr/share/naskpass/naskconf case "$1" in configure) nask_update db_input high naskpass/activate || true db_go db_get naskpass/activate if [ "x$RET" = "xtrue" ]; then nask_activate if [ "x${ERRMSG}" != "x" ]; then echo "* ${ERRMSG}" >&2 nask_deactivate fi else nask_deactivate fi update-initramfs -u ;; install|upgrade|abort-upgrade) ;; *) 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# exit 0