Skip to content

Commit

Permalink
fix(waydroid-setup): not installing dkms on arch (#881)
Browse files Browse the repository at this point in the history
took some code from #797

Co-authored-by: JEEVITHA KANNAN K S <[email protected]>
  • Loading branch information
adamperkowski and jeevithakannan2 authored Oct 31, 2024
1 parent c7d7cd3 commit a2bdd8f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions core/tabs/applications-setup/waydroid-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,17 @@ installWaydroid() {
case "$PACKAGER" in
pacman)
"$AUR_HELPER" -S --needed --noconfirm waydroid
if command_exists dkms; then
"$AUR_HELPER" -S --needed --noconfirm binder_linux-dkms
"$ESCALATION_TOOL" modprobe binder-linux device=binder,hwbinder,vndbinder
if ! command_exists dkms; then
installed_kernels=$("$PACKAGER" -Q | grep -E '^linux(| |-rt|-rt-lts|-hardened|-zen|-lts)[^-headers]' | cut -d ' ' -f 1)
for kernel in $installed_kernels; do
header="${kernel}-headers"
printf "%b\n" "${CYAN}Installing headers for $kernel...${RC}"
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm "$header"
done
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm dkms
fi
"$AUR_HELPER" -S --needed --noconfirm binder_linux-dkms
"$ESCALATION_TOOL" modprobe binder-linux device=binder,hwbinder,vndbinder
;;
apt-get|nala)
curl https://repo.waydro.id | "$ESCALATION_TOOL" sh
Expand Down

0 comments on commit a2bdd8f

Please sign in to comment.