diff --git a/eth/lan-up.sh b/eth/lan-up.sh old mode 100644 new mode 100755 diff --git a/linux/remove-kernel.sh b/linux/remove-kernel.sh index b45253b..8574112 100755 --- a/linux/remove-kernel.sh +++ b/linux/remove-kernel.sh @@ -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