debian/linux-image-7.1.9+deb14-powerpc64le.postrm.ppc64el
raw| 1 | #!/bin/sh -e |
| 2 | |
| 3 | version=7.1.9+deb14-powerpc64le |
| 4 | image_path=/boot/vmlinux-$version |
| 5 | |
| 6 | rm -f /lib/modules/$version/.fresh-install |
| 7 | |
| 8 | if [ "$1" != upgrade ] && command -v linux-update-symlinks >/dev/null; then |
| 9 | linux-update-symlinks remove $version $image_path |
| 10 | fi |
| 11 | |
| 12 | if command -v linux-run-hooks >/dev/null; then |
| 13 | linux-run-hooks image postrm $version $image_path -- "$@" |
| 14 | else |
| 15 | echo >&2 'W: linux-base is not installed; cannot run postrm hooks' |
| 16 | fi |
| 17 | |
| 18 | exit 0 |