#!/bin/ksh93 # postinstall, postremove BASE="${PKG_INSTALL_ROOT}" [[ ${BASE} = '/' ]] && BASE= if [[ -n ${PKG_PROC_script} && -z ${BASE} ]] || [[ -z ${PKG_PROC_script} && \ ( $1 == 'configure' || $1 == 'remove' || -z ${DPKG_MAINTSCRIPT_NAME} ) ]] then REL=${ uname -r ; } if [[ '4.4.0-96-generic' == ${REL} ]]; then /sbin/depmod -a [[ -x /usr/sbin/update-initramfs ]] && /usr/sbin/update-initramfs -u print 'You should reboot the machine now.' fi fi