24 lines
379 B
Bash
Executable file
24 lines
379 B
Bash
Executable file
#!/bin/sh
|
|
|
|
eselect kernel list
|
|
printf "\nSelect a kernel you want to build : "
|
|
read ANS
|
|
|
|
eselect kernel set $ANS
|
|
cd /usr/src/linux
|
|
|
|
make menuconfig
|
|
|
|
printf "Continue? (y/n) "
|
|
read CONT
|
|
|
|
if [ "$CONT" = "y" ]; then
|
|
make -j20 && \
|
|
make -j20 modules_install && \
|
|
make -j20 install && \
|
|
emerge --ask @module-rebuild
|
|
|
|
else
|
|
printf "\n\nKernel update aborted.\n"
|
|
fi
|