From 2d172c2051eee85d81f98267f627bb9babc60bd1 Mon Sep 17 00:00:00 2001 From: mollusk Date: Mon, 16 Sep 2019 16:58:23 -0700 Subject: [PATCH] parlink.sh: auto detect driver when no argument passed Former-commit-id: 9807613bc193a500258827d927a963b3a758338a Former-commit-id: d9469754efd20f807e6037f71ab50e108f84e516 --- parlink.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parlink.sh b/parlink.sh index 4e12603..9858de9 100755 --- a/parlink.sh +++ b/parlink.sh @@ -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)