myhome/.local/bin/remove-kernel
Marcin Woźniak b82dc58f26
Added programs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-03-22 21:27:54 +01: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