2023-07-02 20:54:58 +02:00
|
|
|
function check {
|
2023-07-03 14:11:57 +02:00
|
|
|
[ "$INTERNET" = "down" ] && return 1
|
2023-07-02 20:54:58 +02:00
|
|
|
if xbps-query glibc >/dev/null 2>&1; then
|
|
|
|
return 0
|
|
|
|
else
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
DESCRIPTION="Legacy Nvidia driver, version 390, supports GTX ??? series"
|
|
|
|
|
|
|
|
#TODO: Optimus support?
|
2023-07-03 14:11:57 +02:00
|
|
|
#TODO: void-repo-nonfree
|
2023-07-02 20:54:58 +02:00
|
|
|
PACKAGES="nvidia390"
|
|
|
|
|
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/nvidia390" >> /tmp/stage-2-choices
|
|
|
|
}
|