let linux/remove-kernel.sh remove more than one obsolete kernel
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
2d43a3edb1
commit
a46ede1781
2 changed files with 5 additions and 7 deletions
0
eth/lan-up.sh
Normal file → Executable file
0
eth/lan-up.sh
Normal file → Executable file
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue