adds bin/compile-kernel

This commit is contained in:
Martinez 2017-04-10 12:04:55 +02:00
parent b06754b42f
commit f75e73b196
2 changed files with 19 additions and 0 deletions

18
bin/compile-kernel Executable file
View file

@ -0,0 +1,18 @@
#! /bin/bash
KERNEL_UPDATE_CMD="cave resolve --preserve-world --lazy kernel-modules"
buildkernel --ask --verbose && \
$KERNEL_UPDATE_CMD
echo -n '>>> Type "yes" to do the above. '
read Q
if [[ $Q == "yes" ]]; then
echo ">>> Executing."
$KERNEL_UPDATE_CMD -x
if [[ -d /usr/lib64/opengl/nvidia ]]; then
rm -f /opt/bin/nvidia-* /usr/bin/nvidia-*"
fi
fi