| 1 |
#!/bin/sh |
| 2 |
# SPDX-License-Identifier: GPL-2.0 |
| 3 |
set -eu |
| 4 |
|
| 5 |
version=$1 |
| 6 |
image=$2 |
| 7 |
|
| 8 |
set -- $DEB_MAINT_PARAMS |
| 9 |
|
| 10 |
if [ "$1" = remove ]; then |
| 11 |
image_input=/usr/lib/modules/${version}/vmlinuz |
| 12 |
if [ -e "$image_input" ]; then |
| 13 |
rm -f "$image" |
| 14 |
fi |
| 15 |
fi |