Linux puskom-ProLiant-DL385-Gen10 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64
/
var
/
lib
/
dpkg
/
info
/
/var/lib/dpkg/info/fwupdate.preinst
#!/bin/sh # postrm script for fwupdate # # see: dh_installdeb(1) set -e EFIDIR=$(dpkg-vendor --query vendor | awk '{ print tolower($$0) }') if [ "${DPKG_MAINTSCRIPT_ARCH}" = "amd64" ]; then EFI_NAME=x64 elif [ "${DPKG_MAINTSCRIPT_ARCH}" = "i386" ]; then EFI_NAME=ia32 elif [ "${DPKG_MAINTSCRIPT_ARCH}" = "arm64" ]; then EFI_NAME=aa64 elif [ "${DPKG_MAINTSCRIPT_ARCH}" = "armhf" ]; then EFI_NAME=arm fi rm -f /boot/efi/EFI/$EFIDIR/fwup$EFI_NAME.efi rm -f /var/lib/fwupdate/done rm -f /var/cache/fwupdate/done for dir in /boot/efi/EFI/$EFIDIR/fw /var/cache/fwupdate /var/lib/fwupdate; do if [ -d $dir ]; then rmdir --parents --ignore-fail-on-non-empty $dir || true fi done