reverts "90766ce9
removes unused bin/compile-kernel"
This commit is contained in:
parent
6ba56f19fc
commit
e8efacfd32
1 changed files with 18 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