Commit | Line | Data |
---|---|---|
1 | #!/bin/sh | |
2 | ||
3 | for p in /system/xbin/su /su/bin/su | |
4 | do | |
5 | if [ -x $p ]; then | |
6 | # The su tool may require programs | |
7 | # from /system/bin in path: | |
8 | PATH=/system/bin:$PATH exec $p $@ | |
9 | fi | |
10 | done | |
11 | ||
12 | echo "There is no su program on this device. Termux" | |
13 | echo "does not supply tools for rooting, see e.g." | |
14 | echo "http://www.androidcentral.com/root for" | |
15 | echo "information about rooting Android." | |
16 | exit 1 |