mirror of
https://abf.rosa.ru/djam/anbox.git
synced 2025-02-23 15:42:49 +00:00
19 lines
358 B
Bash
Executable file
19 lines
358 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -xuef
|
|
|
|
device=/var/lib/anbox/binderfs0
|
|
|
|
if findmnt "$device" ; then
|
|
echo "$device is already mounted, exiting"
|
|
exit 0
|
|
fi
|
|
|
|
# Some kernels may have these separate modules,
|
|
# some may have functionality built in
|
|
modprobe binder_linux 2>/dev/null || :
|
|
modprobe ashmem_linux 2>/dev/null || :
|
|
|
|
mount -t binder binder "$device"
|
|
|
|
[ -e /dev/ashmem ]
|