parlink.sh: auto detect driver when no argument passed

Former-commit-id: 9807613bc193a500258827d927a963b3a758338a
Former-commit-id: d9469754efd20f807e6037f71ab50e108f84e516
This commit is contained in:
mollusk 2019-09-16 16:58:23 -07:00
parent ab855b4679
commit 2d172c2051

View File

@ -82,7 +82,11 @@ set_video_driver(){
echo "Setting LIBVA_DRIVER_NAME to: ${driver_name[4]}"
export LIBVA_DRIVER_NAME=${driver_name[4]}
else
elif [[ -z "${CARD_ID}" ]];then
echo "Autodetecting Driver..."
elif [[ "${CARD_ID}" = "-h" ]];then
echo -e "${LRED}Accepted Options:\n
intel-old : (uses i965 driver)
intel-modern : (uses iHD driver)