Update build.func
This commit is contained in:
parent
dc260de640
commit
cc4597218c
@ -1213,9 +1213,12 @@ EOF
|
|||||||
[[ " ${seen_ids[*]} " == *" $id "* ]] && continue
|
[[ " ${seen_ids[*]} " == *" $id "* ]] && continue
|
||||||
seen_ids+=("$id")
|
seen_ids+=("$id")
|
||||||
|
|
||||||
card="/dev/dri/card${id#renderD}"
|
card_index="${id#renderD}"
|
||||||
|
card="/dev/dri/card${card_index}"
|
||||||
combo_devices=("$dev_render")
|
combo_devices=("$dev_render")
|
||||||
[[ -e "$card" ]] && combo_devices+=("$card")
|
if [[ "${#combo_devices[@]}" -eq 1 && -e /dev/dri/card0 ]]; then
|
||||||
|
combo_devices+=("/dev/dri/card0")
|
||||||
|
fi
|
||||||
|
|
||||||
pci_addr=$(basename "$bypath" | cut -d- -f1 --complement | sed 's/-render//' || true)
|
pci_addr=$(basename "$bypath" | cut -d- -f1 --complement | sed 's/-render//' || true)
|
||||||
pci_info=$(lspci -nn | grep "${pci_addr#0000:}" || true)
|
pci_info=$(lspci -nn | grep "${pci_addr#0000:}" || true)
|
||||||
@ -1266,6 +1269,7 @@ EOF
|
|||||||
IDX=$((IDX + 1))
|
IDX=$((IDX + 1))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
else
|
else
|
||||||
if [[ "$CT_TYPE" == "0" ]]; then
|
if [[ "$CT_TYPE" == "0" ]]; then
|
||||||
whiptail --title "VAAPI passthrough" --msgbox "\
|
whiptail --title "VAAPI passthrough" --msgbox "\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user