Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
148
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- /opt/wifislax-scripts/nvidia_rebuild
  2. +++ /root/Desktop/019-Desktop/opt/wifislax-scripts/nvidia_rebuild
  3. @@ -5,8 +5,8 @@
  4. KERNELPATH=${KERNELPATH:-/lib/modules/${KERNEL}/build}
  5. if [ -d /usr/share/nvidia/kernel/ ]; then
  6. cd /usr/share/nvidia/kernel
  7. -make clean &> /dev/null
  8. -make SYSSRC=$KERNELPATH module &> /dev/null
  9. +make clean
  10. +make SYSSRC=$KERNELPATH module
  11. fi
  12.  
  13. # Si el proceso acabo bien ,existira el fichero nvidia.ko
  14. @@ -14,18 +14,18 @@
  15. if [ ! -d /lib/modules/$(uname -r)/kernel/drivers/video ]; then
  16. mkdir -p /lib/modules/$(uname -r)/kernel/drivers/video
  17. fi
  18. -mv -f /usr/share/nvidia/kernel/nvidia.ko /lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko
  19. -nvidia-xconfig &> /dev/null
  20. +mv -f /usr/share/nvidia/kernel/{nvidia-modeset.ko,nvidia.ko,nvidia-drm.ko,nvidia-uvm.ko} /lib/modules/$(uname -r)/kernel/drivers/video/
  21. +nvidia-xconfig
  22. fi
  23.  
  24. # Si se actualiza el kernel salvamos en xzm
  25. if [ -f /lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko ]; then
  26. mkdir -p /root/Desktop/Nvidia_kernel_$(uname -r)/lib/modules/$(uname -r)/kernel/drivers/video
  27. -cp -f /lib/modules/$(uname -r)/kernel/drivers/video/nvidia.ko /root/Desktop/Nvidia_kernel_$(uname -r)/lib/modules/$(uname -r)/kernel/drivers/video
  28. +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
  29. fi
  30.  
  31. if [ -d /root/Desktop/Nvidia_kernel_$(uname -r) ]; then
  32. dir2xzm /root/Desktop/Nvidia_kernel_$(uname -r) /root/Desktop/Nvidia_kernel_$(uname -r).xzm
  33. rm -rf /root/Desktop/Nvidia_kernel_$(uname -r)
  34. mv -f /root/Desktop/Nvidia_kernel_$(uname -r).xzm /root/Desktop/029-Driver_Nvidia_kernel_$(uname -r).xzm
  35. -fi
  36. +fi
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement