uengine-runner/LoadingBinder/load.sh

18 lines
448 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
if [[ `whoami` != root ]]; then
echo 这不是 root 用户,结束
exit 1
fi
if [ -d /dev/binderfs ]; then
echo 已启动 binderend
systemctl start uengine-container.service
systemctl start uengine-session.service
exit
fi
modprobe binder_linux
modprobe ashmem_linux
mkdir /dev/binderfs
mount -t binder binder /dev/binderfs
systemctl start uengine-container.service
systemctl start uengine-session.service