Commit a46ede17 authored by Nico Schottelius's avatar Nico Schottelius

let linux/ remove more than one obsolete kernel

Signed-off-by: default avatarNico Schottelius <>
parent 2d43a3ed
File mode changed from 100644 to 100755
......@@ -26,13 +26,11 @@
if [ "$#" -ne 1 ]; then
echo "No version"
exit 1
while [ "$#" -ge 1 ]; do
version="$1"; shift
rm -vrf "/boot/$version" "/boot/vmlinuz-$version" "/lib/modules/$version"
rm -rf "/boot/$version" "/boot/vmlinuz-$version" "/lib/modules/$version"
echo "Warning: Keeping configuration (/boot/config-$version)."
echo "Warning: Keeping configuration (/boot/config-$version)."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment