reverts "90766ce9 removes unused bin/compile-kernel"

This commit is contained in:
Martinez 2017-08-27 11:05:46 +02:00
parent 6ba56f19fc
commit e8efacfd32

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