3 case "$(ls -l /boot/vmlinu* | wc -l)" in
5 # We only have one kernel installed, so we can use "-u"
6 # which will use dpkg-trigger inside update-initramfs
11 INITRAMFS_ARGS="-u -k all"
15 if [ -x /usr/sbin/update-initramfs ] && [ "${1}" != "triggered" ] && \
16 dpkg --compare-versions "${DPKG_RUNNING_VERSION}" ge "1.14.18"
18 # this activates the trigger, if triggers are working
19 update-initramfs ${INITRAMFS_ARGS}
21 # force it to actually happen
22 DPKG_MAINTSCRIPT_PACKAGE="" update-initramfs ${INITRAMFS_ARGS}