| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| network:ax4200:install_additional_software [2026/10/25 17:26] – [How a script is started at boot (asusware.arm mechanism)] admin | network:ax4200:install_additional_software [2026/10/25 17:49] (current) – admin |
|---|
| wget -O - http://bin.entware.net/aarch64-k3.10/installer/generic.sh | sh | wget -O - http://bin.entware.net/aarch64-k3.10/installer/generic.sh | sh |
| ``` | ``` |
| Using a standard init.d startup script system services can be launched on boot. | |
| |
| ## How a script is started at boot (asusware.arm mechanism) | ## How a script is started at boot (asusware.arm mechanism) |
| | |
| | Using a non-standard `/opt/etc/init.d` startup script system, services can be launched on boot. |
| |
| We use the app mechanism that Download Master/Optware uses, as described in the [Entware wiki](https://github.com/Entware/Entware/wiki/Install-on-Asus-stock-firmware#alternative-asuswarearm-init-script-recent-firmware): | We use the app mechanism that Download Master/Optware uses, as described in the [Entware wiki](https://github.com/Entware/Entware/wiki/Install-on-Asus-stock-firmware#alternative-asuswarearm-init-script-recent-firmware): |
| ``` | ``` |
| |
| The real script lives in `data/` and is only symlinked into `etc/init.d/`, so it can be edited without touching the app directory. It expects `start`/`stop` as `$1`, logs with `logger -t <TAG>` (check **System Log** for the tag after reboot), and in the `start` branch patches `/etc/dnsmasq.conf` to read `conf-dir=/tmp/mnt/sda1/data/dnsmasq.d`, opens the TFTP firewall ports and restarts dnsmasq. | The real script lives in `data/` and is only symlinked into `etc/init.d/`, so it can be edited without touching the app directory. It expects `start`/`stop` as `$1`, logs with `logger -t <TAG>` (check **System Log** for the tag after reboot), and in the `start` branch patches `/etc/dnsmasq.conf` to read `conf-dir=/tmp/mnt/sda1/data/dnsmasq.d`, opens the TFTP firewall ports and restarts dnsmasq. What this is used for is described in [Enable TFTP booting](Network:AX4200:Enable_TFTP_booting). |
| |
| The relevant files from the router (`app_init_run.sh`, `app_get_field.sh`, the init script, control file and the patch script) are kept as a mirror of the router filesystem under `network/ax4200/router-files/`. | The relevant files from the router (`app_init_run.sh`, `app_get_field.sh`, the init script, control file and the patch script) are kept as a mirror of the router filesystem under `network/ax4200/router-files/`. |