51cdbe0073
This will allow build system to set shebang according to the current TERMUX_PREFIX.
19 lines
493 B
Bash
Executable File
19 lines
493 B
Bash
Executable File
#!/bin/sh
|
|
|
|
unset LD_LIBRARY_PATH LD_PRELOAD
|
|
|
|
for p in /sbin/su /system/sbin/su /system/bin/su /system/xbin/su /su/bin/su /magisk/.core/bin/su
|
|
do
|
|
if [ -x $p ]; then
|
|
# The su tool may require programs in PATH:
|
|
PATH=/sbin/su:/su/bin:/su/xbin:/system/bin:/system/xbin \
|
|
exec $p "$@"
|
|
fi
|
|
done
|
|
|
|
echo "No su program found 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
|