11 lines
305 B
Bash
Executable File
11 lines
305 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
while read -r line; do
|
|
if [[ "${line}" == */pkgbase ]]; then
|
|
pkgbase="$(<"/${line}")"
|
|
kver="$(echo ${line} | cut -d/ -f4)"
|
|
|
|
rm -rf "/usr/lib/modules/${kver}" "/boot/vmlinuz-${pkgbase}" "/boot/initramfs-${pkgbase}.img" "/boot/initramfs-${pkgbase}-fallback.img" 2> /dev/null
|
|
fi
|
|
done
|