Closed laisc7301 closed 5 months ago
I'd suggest you to do few things:
#!/data/data/com.termux/files/usr/bin/sh
.chmod +x
your script in ~/.termux/boot/
directory.termux-wake-lock
before executing pure-ftpd
.echo "It run!"
to echo "It run!" > /data/data/com.termux/files/home/termux-boot.txt
. Reboot your device and check whether file termux-boot.txt
appeared in your home directory.Note that you need to open Termux:Boot application at least once by clicking on its launcher icon. https://wiki.termux.com/wiki/Termux:Boot
I solved the problem by rebooting the phone. And I started Termux:Boot at first, after that I launched Termux.
Problem description 我在 ~/.termux/boot/ 目录下放了一个 "test" 文件并在文件中写入:
我重启了手机,进入了Termux,但是这段脚本并没有运行。
I reboot the phone and enter the Termux, but this script is not run.
Steps to reproduce
Expected behavior
Additional information