#!/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 [[ '6.8.0-60-generic' == ${REL} ]]; then
		/sbin/depmod -a
		[[ -x /usr/sbin/update-initramfs ]] && \
			/usr/sbin/update-initramfs -u -k "${REL}"
		print 'Run "modprobe amd_energy".'
	fi
fi
return 0
