shell-scripte-code/tsu-extra.sh

10 lines
229 B
Bash
Raw Normal View History

2017-07-08 14:30:31 +02:00
set -ex
HOME=/storage/emulated/0
PREFIX=/data/data/com.termux/files/usr
2018-02-06 20:59:55 +01:00
ROOT_HOME=$HOME
2017-07-08 14:30:31 +02:00
ROOT_SHELL=$PREFIX/bin/bash
2018-02-06 20:59:55 +01:00
#mkdir -p $HOME/.suroot
2017-07-08 14:30:31 +02:00
su --preserve-environment -c "LD_LIBRARY_PATH=$PREFIX/lib HOME=$ROOT_HOME $ROOT_SHELL"