1#!/bin/sh 2# postrm script for acrn-hypervisor 3# 4# see: dh_installdeb(1) 5 6set -e 7 8. /usr/share/debconf/confmodule 9 10rm_acrn() 11{ 12 rm -f /boot/acrn-@acrnversion@.config 13 rm -f /boot/acrn-@acrnversion@.map 14 rm -f /boot/acrn-@acrnversion@.bin 15 rm -f /boot/ACPI_VM* 16} 17 18# summary of how this script can be called: 19# * <postrm> `remove' 20# * <postrm> `purge' 21# * <old-postrm> `upgrade' <new-version> 22# * <new-postrm> `failed-upgrade' <old-version> 23# * <new-postrm> `abort-install' 24# * <new-postrm> `abort-install' <old-version> 25# * <new-postrm> `abort-upgrade' <old-version> 26# * <disappearer's-postrm> `disappear' <overwriter> 27# <overwriter-version> 28# for details, see https://www.debian.org/doc/debian-policy/ or 29# the debian-policy package 30 31 32case "$1" in 33 remove) 34 rm_acrn 35 ;; 36 purge) 37 rm_acrn 38 db_purge acrn-hypervisor || : 39 ;; 40 upgrade) 41 rm_acrn 42 ;; 43 failed-upgrade|abort-install|abort-upgrade|disappear) 44 ;; 45 46 *) 47 echo "postrm called with unknown argument \`$1'" >&2 48 exit 1 49 ;; 50esac 51 52# dh_installdeb will replace this with shell code automatically 53# generated by other debhelper scripts. 54 55#DEBHELPER# 56 57exit 0 58