| Server IP : 178.128.106.170 / Your IP : 216.73.217.12 Web Server : nginx/1.18.0 System : Linux Live-Team 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64 User : ( 1000) PHP Version : 7.3.33-14+0~20230902.114+debian11~1.gbp764b27 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info/ |
Upload File : |
#! /bin/sh
set -e
# If we're not on an EFI system, do nothing
if [ ! -d /sys/firmware/efi ]; then
exit 0
fi
case amd64 in
i386)
SHIM_REMOVE="mmia32.efi fbia32.efi";;
amd64)
SHIM_REMOVE="mmx64.efi fbx64.efi";;
arm64)
SHIM_REMOVE="mmaa64.efi fbaa64.efi";;
*)
echo "Unsupported dpkg architecture amd64 in $0. ABORT"
exit 1
;;
esac
# Pull out a config value from /etc/default/grub
config_item ()
{
if [ -f /etc/default/grub ]; then
. /etc/default/grub || return
for x in /etc/default/grub.d/*.cfg; do
if [ -e "$x" ]; then
. "$x"
fi
done
fi
eval echo "\$$1"
}
case $1 in
remove|purge)
bootloader_id="$(config_item GRUB_DISTRIBUTOR | tr A-Z a-z | \
cut -d' ' -f1)"
case $bootloader_id in
kubuntu) bootloader_id=ubuntu ;;
esac
# If we're being removed, remove the copies installed in the
# ESP. grub-install doesn't clean those up for us.
if [ "$bootloader_id" ] && \
[ -d "/boot/efi/EFI/$bootloader_id" ]; then
cd /boot/efi/EFI/$bootloader_id
rm -f $SHIM_REMOVE
fi
;;
esac
exit 0