termux/termux-boot
소개
부팅 시 프로그램을 실행할 수 있는 Termux 애드온 앱입니다.
기타 프로젝트측정된 스타 증가
- in 24h
- +3
- in 7 days
- +8
- in 15 days
- +24
- in 1 month
- +52
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTermux:Boot
A Termux add-on app to run programs at boot.
When developing (or packaging), note that this app needs to be signed with the same key as the main Termux app in order to have the permission to execute scripts.
Installation
Termux:Boot application can be obtained from F-Droid.
Additionally we provide per-commit debug builds for those who want to try out the latest features or test their pull request. This build can be obtained from one of the workflow runs listed on Github Actions page.
Signature keys of all offered builds are different. Before you switch the installation source, you will have to uninstall the Termux application and all currently installed plugins. Check https://github.com/termux/termux-app#Installation for more info.
How to use
- Install the Termux:Boot app.
- Start the Termux:Boot app once by clicking on its launcher icon. This allows the app to be run at boot.
- Create the
~/.termux/boot/directory. - Put scripts you want to execute inside the
~/.termux/boot/directory. If there are multiple files, they will be executed in a sorted order. - Note that you may want to run
termux-wake-lockas first thing if you want to ensure that the device is prevented from sleeping.
Examples
To start an sshd server and prevent the device from sleeping at boot,
create the following file at ~/.termux/boot/start-sshd:
#!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
sshd
To start
termux-services, which
in turn starts enabled services, you can put the following in
~/.termux/boot/start-services:
#!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
source /data/data/com.termux/files/usr/etc/profile.d/start-services.sh
License
Released under the GPLv3 license.
관련 프로젝트 살펴보기
불러오는 중…