Updated update-kernel

Signed-off-by: Marcin Wozniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-08-30 15:16:53 +02:00 committed by Marcin Wozniak
parent 1c3d517ce5
commit bbfe0149c3
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -36,8 +36,7 @@ if [ "$agreed" == "y" ] || [ "$agreed" == "Y" ]
$NOW > /tmp/compiling-starting $NOW > /tmp/compiling-starting
NEW_KERNEL="/tmp/new-kernel-config" NEW_KERNEL="/tmp/new-kernel-config"
sudo cp -r $TMP_KERNEL $DEFAULT_KERNEL sudo cp -r $TMP_KERNEL $DEFAULT_KERNEL
#cd /usr/src/linux; sudo make menuconfig; sleep 2; sudo cp -r $DEFAULT_KERNEL $NEW_KERNEL cd /usr/src/linux; sudo make menuconfig; sleep 2; sudo cp -r $DEFAULT_KERNEL $NEW_KERNEL
sleep 2; sudo cp -r $DEFAULT_KERNEL $NEW_KERNEL
sudo genkernel all --makeopts=-j$(nproc --all) --kernel-config=$NEW_KERNEL --callback="emerge nvidia-drivers::gentoo" sudo genkernel all --makeopts=-j$(nproc --all) --kernel-config=$NEW_KERNEL --callback="emerge nvidia-drivers::gentoo"
elif [ "$agreed" == "N" ] || [ "$agreed" == "n" ] elif [ "$agreed" == "N" ] || [ "$agreed" == "n" ]
then then