From 3901cafd2d681bac69ada9960e035c833b0715a8 Mon Sep 17 00:00:00 2001 From: Nicholas Saraniti Date: Sun, 10 Mar 2024 15:55:20 -0400 Subject: [PATCH] added check for isolcpus=3 --- install.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 53b37d8e..b9563b98 100755 --- a/install.sh +++ b/install.sh @@ -151,7 +151,21 @@ if [ "$SKIP_MATRIX" = false ]; then else echo "Sound Blacklist File found, skipping creation." fi - + echo "------------------------------------" + echo " Checking for isolcpus=3" + echo "------------------------------------" + if grep -q isolcpus=3 "/boot/cmdline.txt" || grep -q isolcpus=3 "/boot/firmware/cmdline.txt" 2>/dev/null; then + echo "isolcpus=3 found in cmdline.txt" + else + read -d . VERSION < /etc/debian_version + if [ "$VERSION" -lt "12" ]; then + echo "adding isolcpus=3 to /boot/cmdline.txt" + sudo sed -i '$ s/$/ isolcpus=3/' /boot/cmdline.txt + else + echo "adding isolcpus=3 to /boot/firmware/cmdline.txt" + sudo sed -i '$ s/$/ isolcpus=3/' /boot/firmware/cmdline.txt + fi + fi fi if [ "$SKIP_CONFIG" = true ]; then