shell-scripte-code/tsu-extra.sh

11 lines
246 B
Bash
Raw Permalink Normal View History

2017-07-08 14:30:31 +02:00
set -ex
2018-05-30 18:29:13 +02:00
unset LD_PRELOAD
2017-07-08 14:30:31 +02:00
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"