Browse Source

termux-tools: Add /sbin to su path (fixes #4345)

android-5
Fredrik Fornwall 5 years ago
parent
commit
0362f4d3c0
  1. 2
      packages/termux-tools/build.sh
  2. 2
      packages/termux-tools/su

2
packages/termux-tools/build.sh

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://termux.com/
TERMUX_PKG_DESCRIPTION="Basic system tools for Termux"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=0.70
TERMUX_PKG_VERSION=0.71
TERMUX_PKG_SKIP_SRC_EXTRACT=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
TERMUX_PKG_ESSENTIAL=true

2
packages/termux-tools/su

@ -6,7 +6,7 @@ for p in /sbin/su /system/sbin/su /system/bin/su /system/xbin/su /su/bin/su /mag
do
if [ -x $p ]; then
# The su tool may require programs in PATH:
PATH=/sbin/su:/su/bin:/su/xbin:/system/bin:/system/xbin \
PATH=/sbin:/sbin/su:/su/bin:/su/xbin:/system/bin:/system/xbin \
exec $p "$@"
fi
done

Loading…
Cancel
Save