shell-scripte-code/tsu.sh

6 lines
163 B
Bash
Raw Permalink Normal View History

2017-06-23 16:54:15 +02:00
ROOT_HOME=$HOME/.suroot
ROOT_SHELL=$PREFIX/bin/bash
2017-06-23 20:01:57 +02:00
mkdir -p $HOME/.suroot
2017-06-23 16:54:15 +02:00
su --preserve-environment -c "LD_LIBRARY_PATH=$PREFIX/lib HOME=$ROOT_HOME $ROOT_SHELL"