2023-07-02 20:54:58 +02:00
|
|
|
function check {
|
|
|
|
if xbps-query glibc >/dev/null 2>&1; then
|
|
|
|
return 0
|
|
|
|
else
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
DESCRIPTION="Legacy Nvidia driver, version 470, supports GTX ??? series"
|
|
|
|
|
|
|
|
#TODO: optimus support?
|
|
|
|
PACKAGES="nvidia470"
|
|
|
|
|
2023-07-03 12:40:12 +02:00
|
|
|
function post_install {
|
2023-07-02 20:54:58 +02:00
|
|
|
#TODO: nvidia modeset kernel parameter?
|
|
|
|
echo "nvidia/nvidia470" >> /tmp/stage-2-choices
|
|
|
|
}
|