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