termux-tools: Update su script, add getprop
[termux-packages] / packages / termux-tools / su
CommitLineData
5c7e02d7
FF
1#!/bin/sh
2
3if [ -x /system/xbin/su ]; then
391aa3d4
FF
4 # The su tool may require programs from /system/bin in path:
5 PATH=/system/bin:$PATH /system/xbin/su $@
5c7e02d7
FF
6else
7 echo "There is no su program on this device. Termux"
8 echo "does not supply tools for rooting, see e.g."
9 echo "http://www.androidcentral.com/root for"
10 echo "information about rooting Android."
11 exit 1
12fi