File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
core/tabs/applications-setup Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,17 @@ installWaydroid() {
15
15
case " $PACKAGER " in
16
16
pacman)
17
17
" $AUR_HELPER " -S --needed --noconfirm waydroid
18
- if command_exists dkms; then
19
- " $AUR_HELPER " -S --needed --noconfirm binder_linux-dkms
20
- " $ESCALATION_TOOL " modprobe binder-linux device=binder,hwbinder,vndbinder
18
+ if ! command_exists dkms; then
19
+ installed_kernels=$( " $PACKAGER " -Q | grep -E ' ^linux(| |-rt|-rt-lts|-hardened|-zen|-lts)[^-headers]' | cut -d ' ' -f 1)
20
+ for kernel in $installed_kernels ; do
21
+ header=" ${kernel} -headers"
22
+ printf " %b\n" " ${CYAN} Installing headers for $kernel ...${RC} "
23
+ " $ESCALATION_TOOL " " $PACKAGER " -S --needed --noconfirm " $header "
24
+ done
25
+ " $ESCALATION_TOOL " " $PACKAGER " -S --needed --noconfirm dkms
21
26
fi
27
+ " $AUR_HELPER " -S --needed --noconfirm binder_linux-dkms
28
+ " $ESCALATION_TOOL " modprobe binder-linux device=binder,hwbinder,vndbinder
22
29
;;
23
30
apt-get|nala)
24
31
curl https://repo.waydro.id | " $ESCALATION_TOOL " sh
You can’t perform that action at this time.
0 commit comments