Skip to content

Commit c4ad5a9

Browse files
fix: headers not installing (#915)
1 parent 432d6b3 commit c4ad5a9

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

core/tabs/applications-setup/waydroid-setup.sh

+14-11
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,39 @@
33
. ../common-script.sh
44

55
checkGpu() {
6-
if lspci | grep -i nvidia > /dev/null; then
6+
if lspci | grep -i nvidia >/dev/null; then
77
printf "%b\n" "${RED}Waydroid is not compatible with NVIDIA GPUs.${RC}"
88
exit 1
99
fi
1010
}
1111

1212
installWaydroid() {
1313
if ! command_exists waydroid; then
14-
printf "%b\n" "${YELLOW}Installing Waydroid...${RC}"
14+
printf "%b\n" "${YELLOW}Installing Waydroid...${RC}"
1515
case "$PACKAGER" in
1616
pacman)
1717
"$AUR_HELPER" -S --needed --noconfirm waydroid
18+
1819
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
2520
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm dkms
2621
fi
22+
23+
installed_kernels=$("$PACKAGER" -Q | grep -E '^linux(| |-rt|-rt-lts|-hardened|-zen|-lts)[^-headers]' | cut -d ' ' -f 1)
24+
for kernel in $installed_kernels; do
25+
header="${kernel}-headers"
26+
printf "%b\n" "${CYAN}Installing headers for $kernel...${RC}"
27+
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm "$header"
28+
done
29+
2730
"$AUR_HELPER" -S --needed --noconfirm binder_linux-dkms
2831
"$ESCALATION_TOOL" modprobe binder-linux device=binder,hwbinder,vndbinder
2932
;;
30-
apt-get|nala)
33+
apt-get | nala)
3134
curl https://repo.waydro.id | "$ESCALATION_TOOL" sh
3235
"$ESCALATION_TOOL" "$PACKAGER" install -y waydroid
3336
if command_exists dkms; then
3437
"$ESCALATION_TOOL" "$PACKAGER" install -y git
35-
mkdir -p "$HOME/.local/share/" # only create it if it doesnt exist
38+
mkdir -p "$HOME/.local/share/"
3639
git clone https://github.com/choff/anbox-modules.git "$HOME/.local/share/anbox-modules"
3740
cd "$HOME/.local/share/anbox-modules"
3841
"$ESCALATION_TOOL" cp anbox.conf /etc/modules-load.d/
@@ -47,7 +50,7 @@ installWaydroid() {
4750
"$ESCALATION_TOOL" "$PACKAGER" install -y waydroid
4851
if command_exists dkms; then
4952
"$ESCALATION_TOOL" "$PACKAGER" install -y git
50-
mkdir -p "$HOME/.local/share/" # only create it if it doesnt exist
53+
mkdir -p "$HOME/.local/share/"
5154
git clone https://github.com/choff/anbox-modules.git "$HOME/.local/share/anbox-modules"
5255
cd "$HOME/.local/share/anbox-modules"
5356
"$ESCALATION_TOOL" cp anbox.conf /etc/modules-load.d/

0 commit comments

Comments
 (0)