shell-scripte-code/tsu.sh
2017-06-23 20:01:57 +02:00

5 lines
163 B
Bash
Executable file

ROOT_HOME=$HOME/.suroot
ROOT_SHELL=$PREFIX/bin/bash
mkdir -p $HOME/.suroot
su --preserve-environment -c "LD_LIBRARY_PATH=$PREFIX/lib HOME=$ROOT_HOME $ROOT_SHELL"