2025-07-03 00:55:55 +02:00
|
|
|
#!/data/data/com.termux/files/usr/bin/sh
|
2025-07-02 20:28:23 +02:00
|
|
|
|
|
|
|
|
# My su script for my rooted Android tablet using Termux.
|
|
|
|
|
#
|
|
|
|
|
# You need to do a normal su before and then "mkdir /data/root"
|
|
|
|
|
# as the default $HOME for the root user is / on Android devices
|
|
|
|
|
# and we have no write permission for a /root there.
|
|
|
|
|
#
|
2025-07-03 00:59:17 +02:00
|
|
|
# Do I need/want /system/bin in $PATH?
|
2025-07-02 20:28:23 +02:00
|
|
|
|
|
|
|
|
su -c "HOME=/data/root \
|
2025-07-03 00:59:17 +02:00
|
|
|
PATH=/data/data/com.termux/files/usr/bin:/system/bin \
|
2025-07-02 20:28:23 +02:00
|
|
|
SHELL=/data/data/com.termux/files/usr/bin/zsh /data/data/com.termux/files/usr/bin/zsh -l && cd /data/root"
|
|
|
|
|
|