Skip to content

Commit

Permalink
added check for isolcpus=3
Browse files Browse the repository at this point in the history
  • Loading branch information
tracerrx committed Mar 10, 2024
1 parent bfe8564 commit 3901caf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3901caf

Please sign in to comment.