AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.138.102.163


Current Path : /etc/kernel/postinst.d/
Upload File :
Current File : //etc/kernel/postinst.d/zz-shim

#!/bin/sh

efi_archs="x64 aa64"

# Try to update shim alternative if pointing to previous shim
for efi_arch in ${efi_archs}; do
	test -e /usr/lib/shim/shim${efi_arch}.efi.signed.latest || continue
	if update-alternatives --query shim${efi_arch}.efi.signed | grep "Best: /usr/lib/shim/shim${efi_arch}.efi.signed.previous" -q; then
		dpkg-trigger shim-kernel-check
	fi
done