myhome/.local/bin/remove-kernel
Marcin Woźniak c17c400828 Updated
Signed-off-by: Marcin Wozniak <y0rune@aol.com>
2020-07-15 09:18:08 +02:00

7 lines
203 B
Bash
Executable File

#!/bin/bash
sudo emerge -C "=sys-kernel/gentoo-sources-$1"
sudo rm -rf /usr/src/linux-$1-gentoo
sudo rm -rf /lib/modules/$1-gentoo-x86_64
sudo rm -rf /boot/*$1*
sudo grub-mkconfig -o /boot/grub/grub.cfg