Fredrik Fornwall
9 years ago
2 changed files with 15 additions and 11 deletions
@ -1,12 +1,16 @@ |
|||
#!/bin/sh |
|||
|
|||
if [ -x /system/xbin/su ]; then |
|||
# The su tool may require programs from /system/bin in path: |
|||
PATH=/system/bin:$PATH /system/xbin/su $@ |
|||
else |
|||
echo "There is no su program on this device. Termux" |
|||
echo "does not supply tools for rooting, see e.g." |
|||
echo "http://www.androidcentral.com/root for" |
|||
echo "information about rooting Android." |
|||
exit 1 |
|||
fi |
|||
for p in /system/xbin/su /su/bin/su |
|||
do |
|||
if [ -x $p ]; then |
|||
# The su tool may require programs |
|||
# from /system/bin in path: |
|||
PATH=/system/bin:$PATH exec $p $@ |
|||
fi |
|||
done |
|||
|
|||
echo "There is no su program on this device. Termux" |
|||
echo "does not supply tools for rooting, see e.g." |
|||
echo "http://www.androidcentral.com/root for" |
|||
echo "information about rooting Android." |
|||
exit 1 |
|||
|
Loading…
Reference in new issue