Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: xanmod kernel installs #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: xanmod kernel installs
  • Loading branch information
wizard-28 committed Oct 7, 2022
commit 024c3a9acffcd89dd83c88bb5b02a972874533ad
57 changes: 28 additions & 29 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,35 +64,34 @@ if [[ ! -f "$HOME/.rhino/config/5-19-5" ]] && [[ ! -f "$HOME/.rhino/config/wsl-y
fi
fi

# COMMENTED OUT FOR BUG FIXING

# If the user has enabled a xanmod kernel variant via rhino-config, install it.
#xanmod_variants=$(compgen -G "$HOME/.rhino/config/xanmod-*")
#if $xanmod_variants; then
# echo 'deb http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-kernel.list
# wget -qO - https://dl.xanmod.org/gpg.key | sudo apt-key --keyring /etc/apt/trusted.gpg.d/xanmod-kernel.gpg add -
# sudo apt update
#
# for variant in $xanmod_variants; do
# case $variant in
# stable)
# sudo apt install linux-xanmod
# ;;
# realtime)
# sudo apt install linux-xanmod-rt
# ;;
# realtime_edge)
# sudo apt install linux-xanmod-rt-edge
# ;;
# tasktype)
# sudo apt install linux-xanmod-tt
# ;;
# *)
# sudo apt install "linux-$variant"
# ;;
# esac
# done
#fi
xanmod_variants=$(compgen -G "$HOME/.rhino/config/xanmod-*")
if $xanmod_variants; then
echo 'deb http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-kernel.list
wget -qO - https://dl.xanmod.org/gpg.key | sudo apt-key --keyring /etc/apt/trusted.gpg.d/xanmod-kernel.gpg add -
sudo apt update

for variant in $xanmod_variants; do
variant=$(echo "$variant" | cut -d "-" -f 2)

case $variant in
stable)
sudo apt install linux-xanmod
;;
realtime)
sudo apt install linux-xanmod-rt
;;
realtime_edge)
sudo apt install linux-xanmod-rt-edge
;;
tasktype)
sudo apt install linux-xanmod-tt
;;
*)
sudo apt install "linux-$variant"
;;
esac
done
fi

# If the user has enabled the liq kernel via rhino-config, install it.
if [[ -f "$HOME/.rhino/config/liquorix" ]]; then
Expand Down