Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
024c2424
Commit
024c2424
authored
Nov 18, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Nov 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play waydroid: fix install (eterbug #17553)
parent
2e90fac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
36 deletions
+37
-36
waydroid.sh
prescription.d/waydroid.sh
+37
-36
No files found.
prescription.d/waydroid.sh
View file @
024c2424
...
...
@@ -9,11 +9,6 @@
epm assure lspci pciutils
||
exit
check_run_kernel
()
{
USED_KFLAVOUR
=
"
$(
uname
-r
|
awk
-F
'-'
'{print $(NF-2)}'
)
-def"
ls
/boot |
grep
"vmlinuz"
|
grep
-vE
'vmlinuz-un-def|vmlinuz-std-def'
|
grep
"
${
USED_KFLAVOUR
}
"
|
sort
-Vr
|
head
-n1
|
grep
-q
$(
uname
-r
)
}
display_help
()
{
echo
"
...
...
@@ -24,46 +19,26 @@ Use: epm prescription waydroid [option]
--init
Initialize Waydroid
--install
Instal Waydroid
--integrate
Enable desktop window integration for Waydroid
--clean
Clean all Waydroid files
--software-render
Use software render in Waydroid (maybe fix work in Nvidia)
--help
Display this page
"
exit
}
case
"
${
3
}
"
in
'--gpu'
)
assure_root
waydroid_select_gpu
;;
'--init'
)
assure_root
waydroid_init
;;
'--install'
)
assure_root
waydroid_install
;;
'--integrate'
)
assure_root
waydroid_integrate
;;
'--software-render'
)
assure_root
waydroid_software_rendering
;;
'--help'
|
*
)
display_help
;;
esac
# TODO: fix used_kflavour export in epm update-kernel --check-run-kernel
used_kflavour
()
{
if
[
$(
uname
-r
|
grep
"def"
)
]
;
then
USED_KFLAVOUR
=
$(
uname
-r
|
awk
-F
'-'
'{print $2 "-" $3}'
)
else
USED_KFLAVOUR
=
$(
uname
-r
|
awk
-F
'-'
'{print $2}'
)
fi
}
waydroid_install
()
{
epm update-kernel
--add-kernel-options
psi1
...
...
@@ -75,6 +50,7 @@ waydroid_install () {
fatal
fi
used_kflavour
epm
install
--skip-installed
kernel-modules-anbox-
$USED_KFLAVOUR
libgbinder1 waydroid
||
fatal
a
=
update-grub
...
...
@@ -136,3 +112,28 @@ waydroid_software_rendering () {
sed
-i
"s/ro.hardware.gralloc=.*/ro.hardware.gralloc=default/g"
/var/lib/waydroid/waydroid_base.prop
sed
-i
"s/ro.hardware.egl=.*/ro.hardware.egl=swiftshader/g"
/var/lib/waydroid/waydroid_base.prop
}
case
"
${
3
}
"
in
'--gpu'
)
assure_root
waydroid_select_gpu
;;
'--init'
)
assure_root
waydroid_init
;;
'--integrate'
)
assure_root
waydroid_integrate
;;
'--software-render'
)
assure_root
waydroid_software_rendering
;;
'--help'
)
display_help
;;
*
)
assure_root
waydroid_install
;;
esac
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment