appease shellcheck

This commit is contained in:
HikariKnight 2022-03-10 16:48:33 +01:00
parent 0e27db0481
commit a3e3fb34a8
No known key found for this signature in database
GPG key ID: E8B239063B022F5A

View file

@ -44,7 +44,7 @@ Press ENTER to continue once you have made a backup of your system.
read ENTER read ENTER
clear clear
printf "This script assumes a few things: echo "This script assumes a few things:
* You have already enabled IOMMU, VT-d and/or AMD-v inside your UEFI/BIOS advanced settings. * You have already enabled IOMMU, VT-d and/or AMD-v inside your UEFI/BIOS advanced settings.
* You have already added \"$CMDLINE\" to your * You have already added \"$CMDLINE\" to your
kernel boot arguments and booted your system with these kernel arguments active. kernel boot arguments and booted your system with these kernel arguments active.
@ -122,7 +122,7 @@ LS_IOMMU=$($SCRIPTDIR/utils/ls-iommu)
if [[ $LS_IOMMU =~ ^IOMMU[[:space:]]Group[[:space:]]+\*: ]]; if [[ $LS_IOMMU =~ ^IOMMU[[:space:]]Group[[:space:]]+\*: ]];
then then
# Tell user to enable IOMMU then try again # Tell user to enable IOMMU then try again
printf "IOMMU IS NOT ENABLED! echo "IOMMU IS NOT ENABLED!
Please enable IOMMU, VT-d or AMD-v inside your UEFI/BIOS and add \"$CMDLINE\" Please enable IOMMU, VT-d or AMD-v inside your UEFI/BIOS and add \"$CMDLINE\"
to your kernel boot arguments and reboot your system, then re-run this script! to your kernel boot arguments and reboot your system, then re-run this script!
" "
@ -142,13 +142,13 @@ case "${YESNO}" in
clear clear
;; ;;
[Nn]*) [Nn]*)
printf "Please enable IOMMU, VT-d or AMD-v inside your UEFI/BIOS and add \"$CMDLINE\" echo "Please enable IOMMU, VT-d or AMD-v inside your UEFI/BIOS and add \"$CMDLINE\"
to your kernel boot arguments and reboot your system, then re-run this script! to your kernel boot arguments and reboot your system, then re-run this script!
" "
exit 1 exit 1
;; ;;
*) *)
printf "Please enable IOMMU, VT-d or AMD-v inside your UEFI/BIOS and add \"$CMDLINE\" echo "Please enable IOMMU, VT-d or AMD-v inside your UEFI/BIOS and add \"$CMDLINE\"
to your kernel boot arguments and reboot your system, then re-run this script! to your kernel boot arguments and reboot your system, then re-run this script!
" "
exit 1 exit 1