代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
unset LD_PRELOAD
set -e
# Set the default command
command=("proot"
"--link2symlink"
"-0"
"-r ubuntu-fs"
"-b /dev"
"-b /proc"
"-b ubuntu-fs/root:/dev/shm"
"-w /root"
"/usr/bin/env"
"-i"
"HOME=/root"
"PATH=/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/games:/usr/local/games"
"TERM=$TERM"
"LANG=C.UTF-8"
"/bin/bash"
"--login")
# Check if the binds directory exists, and if so, add the binds to the command
if [ -d "binds" ]; then
for f in binds/* ;do
. "$f"
done
fi
# Check if the user wants to mount the home directory of Termux
if [ -n "$TERMUX_HOME_MOUNT" ]; then
command+=("-b" "/data/data/com.termux/files/home:/root")
fi
# Check if the user wants to mount the sdcard directory directly to /
if [ -n "$TERMUX_SDCARD_MOUNT" ]; then
command+=("-b" "/sdcard")
fi
# Check if the user has provided any arguments, and if so, add them to the command
if [ $# -gt 0 ]; then
command+=("-c" "$*")
fi
# Run the command
if [ -n "$TERMUX_FISH" ]; then
exec fish "${command[@]}"
else
exec "${command[@]}"
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。