Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- /opt/wifislax-scripts/nvidia_rebuild
- +++ /root/Desktop/019-Desktop/opt/wifislax-scripts/nvidia_rebuild
- @@ -5,8 +5,8 @@
- KERNELPATH=${KERNELPATH:-/lib/modules/${KERNEL}/build}
- if [ -d /usr/share/nvidia/kernel/ ]; then
- cd /usr/share/nvidia/kernel
- -make clean &> /dev/null
- -make SYSSRC=$KERNELPATH module &> /dev/null
- +make clean
- +make SYSSRC=$KERNELPATH module
- fi
- # Si el proceso acabo bien ,existira el fichero nvidia.ko
- @@ -14,18 +14,18 @@
- if [ ! -d /lib/modules/$(uname -r)/kernel/drivers/video ]; then
- mkdir -p /lib/modules/$(uname -r)/kernel/drivers/video
- fi
- -mv -f /usr/share/nvidia/kernel/nvidia.ko /lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko
- -nvidia-xconfig &> /dev/null
- +mv -f /usr/share/nvidia/kernel/{nvidia-modeset.ko,nvidia.ko,nvidia-drm.ko,nvidia-uvm.ko} /lib/modules/$(uname -r)/kernel/drivers/video/
- +nvidia-xconfig
- fi
- # Si se actualiza el kernel salvamos en xzm
- if [ -f /lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko ]; then
- mkdir -p /root/Desktop/Nvidia_kernel_$(uname -r)/lib/modules/$(uname -r)/kernel/drivers/video
- -cp -f /lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko /root/Desktop/Nvidia_kernel_$(uname -r)/lib/modules/$(uname -r)/kernel/drivers/video
- +cp -f /lib/modules/$(uname -r)/kernel/drivers/video/{nvidia-modeset.ko,nvidia.ko,nvidia-drm.ko,nvidia-uvm.ko} /root/Desktop/Nvidia_kernel_$(uname -r)/lib/modules/$(uname -r)/kernel/drivers/video
- fi
- if [ -d /root/Desktop/Nvidia_kernel_$(uname -r) ]; then
- dir2xzm /root/Desktop/Nvidia_kernel_$(uname -r) /root/Desktop/Nvidia_kernel_$(uname -r).xzm
- rm -rf /root/Desktop/Nvidia_kernel_$(uname -r)
- mv -f /root/Desktop/Nvidia_kernel_$(uname -r).xzm /root/Desktop/029-Driver_Nvidia_kernel_$(uname -r).xzm
- -fi
- +fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement