#!/bin/sh set -e if [ "x$1" = xremove ]; then if which update-initramfs >/dev/null 2>&1 then update-initramfs -u fi if [ -e /boot/grub/grub.cfg ] && which update-grub >/dev/null 2>&1; then update-grub || true fi fi