uengine-runner/LoadingBinder/load.sh

14 lines
276 B
Bash
Raw Normal View History

#!/bin/bash
if [[ `whoami` != root ]]; then
echo 这不是 root 用户,结束
exit 1
2023-05-02 17:21:13 +08:00
fi
2023-05-03 09:00:06 +08:00
if [ -d /dev/binderfs ]; then
echo 已启动 binderend
exit
fi
modprobe binder_linux
2023-05-03 22:37:50 +08:00
modprobe ashmem_linux
mkdir /dev/binderfs
2023-05-02 17:21:13 +08:00
mount -t binder binder /dev/binderfs