big shellcheck cleanup and disabling the shellchecks we will ignore

This commit is contained in:
HikariKnight 2022-03-13 12:53:13 +01:00
parent f90e35f647
commit 6e0fd90dd7
No known key found for this signature in database
GPG key ID: E8B239063B022F5A
13 changed files with 31 additions and 14 deletions

View file

@ -1,14 +1,15 @@
#!/bin/bash
# shellcheck disable=SC1091
# Get the scripts directory
SCRIPTDIR=$(dirname "$(realpath "$0")")
cd "$SCRIPTDIR"
cd "$SCRIPTDIR" || exit
# Get the config paths
source "$SCRIPTDIR/lib/paths.sh"
# Get the CPU Vendor
CPU_VENDOR=$(cat /proc/cpuinfo | grep vendor | head -1 | cut -f 2 | cut -d " " -f 2)
CPU_VENDOR=$(grep "vendor_id" /proc/cpuinfo | head -1 | cut -f 2 | cut -d " " -f 2)
CMDLINE="iommu=pt"
# Adjust our kernel_args based on cpu vendor