shell-scripte-code/tsu-extra.sh
simono41 0678a17bbe fix
2018-05-30 18:29:13 +02:00

10 lines
246 B
Bash
Executable file

set -ex
unset LD_PRELOAD
HOME=/storage/emulated/0
PREFIX=/data/data/com.termux/files/usr
ROOT_HOME=$HOME
ROOT_SHELL=$PREFIX/bin/bash
#mkdir -p $HOME/.suroot
su --preserve-environment -c "LD_LIBRARY_PATH=$PREFIX/lib HOME=$ROOT_HOME $ROOT_SHELL"