blob: 106987b3f490208fc3ec343396985340c72a907f (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash -e
while read -r line; do
if [[ "$line" == 'usr/lib/modules/'+([^/])'/pkgbase' ]]; then
read -r pkgbase < "/${line}"
rm -f "/boot/vmlinuz-${pkgbase}" "/boot/${pkgbase}.efi" "/boot/${pkgbase}-fallback.efi"
fi
done
|