mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-24 22:14:28 +00:00
Merge 200a449243
into 8639da3855
This commit is contained in:
commit
4134db31cd
|
@ -3,7 +3,7 @@
|
||||||
. ../common-script.sh
|
. ../common-script.sh
|
||||||
|
|
||||||
checkGpu() {
|
checkGpu() {
|
||||||
if lspci | grep -i nvidia > /dev/null; then
|
if lspci | grep -i nvidia >/dev/null; then
|
||||||
printf "%b\n" "${RED}Waydroid is not compatible with NVIDIA GPUs.${RC}"
|
printf "%b\n" "${RED}Waydroid is not compatible with NVIDIA GPUs.${RC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -11,28 +11,31 @@ checkGpu() {
|
||||||
|
|
||||||
installWaydroid() {
|
installWaydroid() {
|
||||||
if ! command_exists waydroid; then
|
if ! command_exists waydroid; then
|
||||||
printf "%b\n" "${YELLOW}Installing Waydroid...${RC}"
|
printf "%b\n" "${YELLOW}Installing Waydroid...${RC}"
|
||||||
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
|
||||||
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
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm dkms
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
"$AUR_HELPER" -S --needed --noconfirm binder_linux-dkms
|
"$AUR_HELPER" -S --needed --noconfirm binder_linux-dkms
|
||||||
"$ESCALATION_TOOL" modprobe binder-linux device=binder,hwbinder,vndbinder
|
"$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
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y waydroid
|
"$ESCALATION_TOOL" "$PACKAGER" install -y waydroid
|
||||||
if command_exists dkms; then
|
if command_exists dkms; then
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y git
|
"$ESCALATION_TOOL" "$PACKAGER" install -y git
|
||||||
mkdir -p "$HOME/.local/share/" # only create it if it doesnt exist
|
mkdir -p "$HOME/.local/share/"
|
||||||
git clone https://github.com/choff/anbox-modules.git "$HOME/.local/share/anbox-modules"
|
git clone https://github.com/choff/anbox-modules.git "$HOME/.local/share/anbox-modules"
|
||||||
cd "$HOME/.local/share/anbox-modules"
|
cd "$HOME/.local/share/anbox-modules"
|
||||||
"$ESCALATION_TOOL" cp anbox.conf /etc/modules-load.d/
|
"$ESCALATION_TOOL" cp anbox.conf /etc/modules-load.d/
|
||||||
|
@ -47,7 +50,7 @@ installWaydroid() {
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y waydroid
|
"$ESCALATION_TOOL" "$PACKAGER" install -y waydroid
|
||||||
if command_exists dkms; then
|
if command_exists dkms; then
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" install -y git
|
"$ESCALATION_TOOL" "$PACKAGER" install -y git
|
||||||
mkdir -p "$HOME/.local/share/" # only create it if it doesnt exist
|
mkdir -p "$HOME/.local/share/"
|
||||||
git clone https://github.com/choff/anbox-modules.git "$HOME/.local/share/anbox-modules"
|
git clone https://github.com/choff/anbox-modules.git "$HOME/.local/share/anbox-modules"
|
||||||
cd "$HOME/.local/share/anbox-modules"
|
cd "$HOME/.local/share/anbox-modules"
|
||||||
"$ESCALATION_TOOL" cp anbox.conf /etc/modules-load.d/
|
"$ESCALATION_TOOL" cp anbox.conf /etc/modules-load.d/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user