adds bin/compile-kernel
This commit is contained in:
parent
b06754b42f
commit
f75e73b196
2 changed files with 19 additions and 0 deletions
18
bin/compile-kernel
Executable file
18
bin/compile-kernel
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue