Commit 8a6e29bd authored by abveritas's avatar abveritas

correction nvidia-lts

parent 7ec4e7fd
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# maintainer abveritas@chakra-project.org # maintainer abveritas@chakra-project.org
# Find the kernel name inside the chroot # Find the kernel name inside the chroot
_extramodules=extramodules-`pacman -Q linux-lts | cut -c11-13 | sed 's/linux-lts //g'`-CHAKRA-LTS _extramodules=extramodules-`pacman -Q linux-lts | cut -c11-13 | sed 's/linux-lts //g'`-lts
_kver="$(cat /lib/modules/${_extramodules}/version)" _kver="$(cat /lib/modules/${_extramodules}/version)"
pkgname=nvidia-lts pkgname=nvidia-lts
......
post_install() { post_install() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-lts'
depmod $(cat /lib/modules/$EXTRAMODULES/version) depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo 'In order to use nvidia module, reboot the system.' echo 'In order to use nvidia module, reboot the system.'
echo "blacklist nouveau" > "/etc/modprobe.d/nouveau_blacklist.conf" echo "blacklist nouveau" > "/etc/modprobe.d/nouveau_blacklist.conf"
} }
post_upgrade() { post_upgrade() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-lts'
depmod $(cat /lib/modules/$EXTRAMODULES/version) depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo "blacklist nouveau" > "/etc/modprobe.d/nouveau_blacklist.conf" echo "blacklist nouveau" > "/etc/modprobe.d/nouveau_blacklist.conf"
} }
post_remove() { post_remove() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-lts'
depmod $(cat /lib/modules/$EXTRAMODULES/version) depmod $(cat /lib/modules/$EXTRAMODULES/version)
rm "/etc/modprobe.d/nouveau_blacklist.conf" rm "/etc/modprobe.d/nouveau_blacklist.conf"
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment