Skip to content

Instantly share code, notes, and snippets.

View gwenhael-le-moine's full-sized avatar

gwenhael gwenhael-le-moine

View GitHub Profile
@gwenhael-le-moine
gwenhael-le-moine / termux-su.sh
Last active October 23, 2022 11:53 — forked from cswl/termux-su
run termux programs as root..
#!/data/data/com.termux/files/usr/bin/sh
# sudo for Termux
# For security reasons some environent variables are reset by su
# So need to set LD_LIBRARY_PATH again
# root's HOME is set to termux's home/.suroot. You can add bashrc there
ROOT_HOME=$HOME/.suroot