Commit 10a5f958 authored by Phil's avatar Phil

extramodules: fix

parent 909be601
...@@ -36,7 +36,6 @@ package() { ...@@ -36,7 +36,6 @@ package() {
mkdir -p $pkgdir//lib/modules/${_extramodules} mkdir -p $pkgdir//lib/modules/${_extramodules}
install -m644 nvidia.ko $pkgdir/lib/modules/${_extramodules} install -m644 nvidia.ko $pkgdir/lib/modules/${_extramodules}
install -d -m755 "${pkgdir}/etc/modprobe.d" install -d -m755 "${pkgdir}/etc/modprobe.d"
echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist.conf"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install" sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko" gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
} }
...@@ -2,14 +2,17 @@ post_install() { ...@@ -2,14 +2,17 @@ post_install() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-CHAKRA-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"
} }
post_upgrade() { post_upgrade() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version) depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo "blacklist nouveau" > "/etc/modprobe.d/nouveau_blacklist.conf"
} }
post_remove() { post_remove() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version) depmod $(cat /lib/modules/$EXTRAMODULES/version)
rm "/etc/modprobe.d/nouveau_blacklist.conf"
} }
...@@ -37,7 +37,6 @@ package() { ...@@ -37,7 +37,6 @@ package() {
mkdir -p $pkgdir//lib/modules/${_extramodules} mkdir -p $pkgdir//lib/modules/${_extramodules}
install -m644 nvidia.ko $pkgdir/lib/modules/${_extramodules} install -m644 nvidia.ko $pkgdir/lib/modules/${_extramodules}
install -d -m755 "${pkgdir}/etc/modprobe.d" install -d -m755 "${pkgdir}/etc/modprobe.d"
echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist.conf"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install" sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko" gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
} }
...@@ -2,14 +2,17 @@ post_install() { ...@@ -2,14 +2,17 @@ post_install() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-CHAKRA-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"
} }
post_upgrade() { post_upgrade() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version) depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo "blacklist nouveau" > "/etc/modprobe.d/nouveau_blacklist.conf"
} }
post_remove() { post_remove() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version) depmod $(cat /lib/modules/$EXTRAMODULES/version)
rm "/etc/modprobe.d/nouveau_blacklist.conf"
} }
\ No newline at end of file
...@@ -43,7 +43,6 @@ package() { ...@@ -43,7 +43,6 @@ package() {
install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \ install -D -m644 "${srcdir}/${_pkg}/kernel/nvidia.ko" \
"${pkgdir}/lib/modules/${_extramodules}/nvidia.ko" "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
install -d -m755 "${pkgdir}/etc/modprobe.d" install -d -m755 "${pkgdir}/etc/modprobe.d"
echo "blacklist nouveau" >> "${pkgdir}/etc/modprobe.d/nouveau_blacklist.conf"
sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install" sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='${_extramodules}'/" "${startdir}/nvidia.install"
gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko" gzip "${pkgdir}/lib/modules/${_extramodules}/nvidia.ko"
} }
...@@ -2,14 +2,17 @@ post_install() { ...@@ -2,14 +2,17 @@ post_install() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-CHAKRA-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"
} }
post_upgrade() { post_upgrade() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version) depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo "blacklist nouveau" > "/etc/modprobe.d/nouveau_blacklist.conf"
} }
post_remove() { post_remove() {
EXTRAMODULES='extramodules-3.0-CHAKRA-LTS' EXTRAMODULES='extramodules-3.0-CHAKRA-LTS'
depmod $(cat /lib/modules/$EXTRAMODULES/version) depmod $(cat /lib/modules/$EXTRAMODULES/version)
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