From e1d639e7067bbbdc55592b36ad98164a35a3ea35 Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Sun, 27 Feb 2022 17:19:59 +0100 Subject: [PATCH] minor design fixes --- lib/get_GPU.sh | 7 ++++--- lib/get_USB_CTL.sh | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/get_GPU.sh b/lib/get_GPU.sh index ad0e26b..84fe21b 100755 --- a/lib/get_GPU.sh +++ b/lib/get_GPU.sh @@ -1,9 +1,10 @@ #!/bin/bash function get_GPU () { + clear printf "These are your graphic cards, they have to be in separate groups. The graphic card you want to passthrough cannot be in a group with other devices that -does not belong to itself: +does not belong to itself. Both cards must also have unique hardware ids [xxxx:yyyy]!: " echo "#------------------------------------------#" @@ -30,9 +31,9 @@ Press q to quit } function main () { - SCRIPTDIR=$(dirname `which $0`) + SCRIPTDIR=$(dirname `which $0` | perl -pe "s/\/\.\.\/lib//") SCRIPTDIR="$SCRIPTDIR/.." - clear + get_GPU } diff --git a/lib/get_USB_CTL.sh b/lib/get_USB_CTL.sh index b31d4d6..e59ac93 100755 --- a/lib/get_USB_CTL.sh +++ b/lib/get_USB_CTL.sh @@ -1,6 +1,7 @@ #!/bin/bash function get_USB_CTL () { + clear printf "THIS STEP IS OPTIONAL IF YOU DO NOT PLAN TO USE ANYTHING OTHER THAN MOUSE AND KEYBOARD! The USB Controller you want to passthrough cannot be in a group with other devices. Passing through a whole USB Controller (a set of hardwired 1-4 usb ports on the motherboard) @@ -30,9 +31,9 @@ Press q to quit } function main () { - SCRIPTDIR=$(dirname `which $0`) + SCRIPTDIR=$(dirname `which $0` | perl -pe "s/\/\.\.\/lib//") SCRIPTDIR="$SCRIPTDIR/.." - clear + get_USB_CTL }