Initialize the ids-database
This commit is contained in:
+17
-1
@@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
gum style --border-foreground="030" --bold --border=normal --padding="0 2" "GPU detection tool for NixOS"
|
gum style --border-foreground="030" --bold --border=normal --padding="0 2" "GPU detection tool for NixOS"
|
||||||
|
|
||||||
|
USER_ID="$(id -u)"
|
||||||
|
|
||||||
declare -A args=(
|
declare -A args=(
|
||||||
["brand"]="all"
|
["brand"]="all"
|
||||||
["hw_accel"]="true"
|
["hw_accel"]="true"
|
||||||
@@ -52,8 +54,21 @@ LATEST="#VERSION#"
|
|||||||
PACKAGE=
|
PACKAGE=
|
||||||
RET=1
|
RET=1
|
||||||
|
|
||||||
NV_DETECT() {
|
amd_detect() {
|
||||||
|
DETECT_LOCATION="/run/user/${USER_ID}/gpu-detect/amd"
|
||||||
|
mkdir -p "${DETECT_LOCATION}"
|
||||||
|
|
||||||
|
curl -sL https://gittea.dev/numbus/gpu-detect/raw/branch/26.05/server/ids-database/nvidia/legacy/legacy_340.ids -o "${DETECT_LOCATION}"/legacy_340.ids
|
||||||
|
curl -sL https://gittea.dev/numbus/gpu-detect/raw/branch/26.05/server/ids-database/nvidia/legacy/legacy_390.ids -o "${DETECT_LOCATION}"/legacy_390.ids
|
||||||
|
curl -sL https://gittea.dev/numbus/gpu-detect/raw/branch/26.05/server/ids-database/nvidia/legacy/legacy_470.ids -o "${DETECT_LOCATION}"/legacy_470.ids
|
||||||
|
curl -sL https://gittea.dev/numbus/gpu-detect/raw/branch/26.05/server/ids-database/nvidia/legacy/legacy_580.ids -o "${DETECT_LOCATION}"/legacy_580.ids
|
||||||
|
}
|
||||||
|
|
||||||
|
intel_detect() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
nvidia_detect() {
|
||||||
|
|
||||||
NVGA=${1}
|
NVGA=${1}
|
||||||
IDLISTDIR=/usr/share/nvidia
|
IDLISTDIR=/usr/share/nvidia
|
||||||
@@ -179,4 +194,5 @@ else
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
exit $RET
|
exit $RET
|
||||||
|
|||||||
Reference in New Issue
Block a user