mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +00:00
fix(waydroid-setup): not installing dkms
on arch (#881)
took some code from #797 Co-authored-by: JEEVITHA KANNAN K S <ksjeevithakannan123@gmail.com>
This commit is contained in:
parent
c7d7cd3891
commit
a2bdd8fb4c
|
@ -15,10 +15,17 @@ installWaydroid() {
|
||||||
case "$PACKAGER" in
|
case "$PACKAGER" in
|
||||||
pacman)
|
pacman)
|
||||||
"$AUR_HELPER" -S --needed --noconfirm waydroid
|
"$AUR_HELPER" -S --needed --noconfirm waydroid
|
||||||
if command_exists dkms; then
|
if ! command_exists dkms; then
|
||||||
"$AUR_HELPER" -S --needed --noconfirm binder_linux-dkms
|
installed_kernels=$("$PACKAGER" -Q | grep -E '^linux(| |-rt|-rt-lts|-hardened|-zen|-lts)[^-headers]' | cut -d ' ' -f 1)
|
||||||
"$ESCALATION_TOOL" modprobe binder-linux device=binder,hwbinder,vndbinder
|
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
|
fi
|
||||||
|
"$AUR_HELPER" -S --needed --noconfirm binder_linux-dkms
|
||||||
|
"$ESCALATION_TOOL" modprobe binder-linux device=binder,hwbinder,vndbinder
|
||||||
;;
|
;;
|
||||||
apt-get|nala)
|
apt-get|nala)
|
||||||
curl https://repo.waydro.id | "$ESCALATION_TOOL" sh
|
curl https://repo.waydro.id | "$ESCALATION_TOOL" sh
|
||||||
|
|
Loading…
Reference in New Issue
Block a user