Commit a46ede17 authored by Nico Schottelius's avatar Nico Schottelius

let linux/remove-kernel.sh remove more than one obsolete kernel

Signed-off-by: default avatarNico Schottelius <nico@ikn.schottelius.org>
parent 2d43a3ed
File mode changed from 100644 to 100755
......@@ -26,13 +26,11 @@
#
#
if [ "$#" -ne 1 ]; then
echo "No version"
exit 1
fi
while [ "$#" -ge 1 ]; do
version="$1"; shift
version="$1"
rm -vrf "/boot/System.map-$version" "/boot/vmlinuz-$version" "/lib/modules/$version"
rm -rf "/boot/System.map-$version" "/boot/vmlinuz-$version" "/lib/modules/$version"
echo "Warning: Keeping configuration (/boot/config-$version)."
echo "Warning: Keeping configuration (/boot/config-$version)."
done
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