termux-tools: Add su wrapper

This commit is contained in:
Fredrik Fornwall 2016-03-23 12:45:54 -04:00
parent 4cb7166aa9
commit 5c7e02d7de
1 changed files with 11 additions and 0 deletions

11
packages/termux-tools/su Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
if [ -x /system/xbin/su ]; then
/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