Update package version to 107 and add cleanup-initramfs script
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
for file in $(find /boot/ -name 'initramfs-*'); do
|
||||
kver=$(echo "$file" | sed 's/.img//' | cut -d'-' -f'2-')
|
||||
|
||||
# Continue if kernel version is installed
|
||||
[ -d /usr/lib/modules/"$kver" ] && continue
|
||||
|
||||
echo "Removed $file"
|
||||
rm $file
|
||||
done
|
||||
Reference in New Issue
Block a user