network:ax4200:enable_tftp_booting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
network:ax4200:enable_tftp_booting [2026/10/25 17:50] – adminnetwork:ax4200:enable_tftp_booting [2026/10/25 17:55] (current) – [Enable TFTP booting] admin
Line 4: Line 4:
  
 Stock firmware gives no way to add dnsmasq options or open the TFTP firewall port, and neither survives a reboot. So the setup is: a startup script that patches the running configuration on every boot. The boot mechanism behind it (asusware.arm app mechanism) is described in [Install additional software](Network:AX4200:Install_additional_software). Stock firmware gives no way to add dnsmasq options or open the TFTP firewall port, and neither survives a reboot. So the setup is: a startup script that patches the running configuration on every boot. The boot mechanism behind it (asusware.arm app mechanism) is described in [Install additional software](Network:AX4200:Install_additional_software).
- 
-All involved files from the router are kept as a mirror under `network/ax4200/router-files/`. 
  
 ## What is done on every boot ## What is done on every boot
Line 32: Line 30:
 The script logs each step with `logger -t S99-patch-and-restart-dnsmasq` — check **Administration → System Log** after a reboot to confirm it ran. The script logs each step with `logger -t S99-patch-and-restart-dnsmasq` — check **Administration → System Log** after a reboot to confirm it ran.
  
-## dnsmasq drop-in: `mnt/sda1/data/dnsmasq.d/dnsmasq.conf`+## dnsmasq drop-in: /mnt/sda1/data/dnsmasq.d/dnsmasq.conf
  
 The drop-in read via `conf-dir=` enables dnsmasq's built-in TFTP server and hands out boot files via DHCP: The drop-in read via `conf-dir=` enables dnsmasq's built-in TFTP server and hands out boot files via DHCP:
Line 56: Line 54:
 - The same drop-in also carries the non-TFTP DNS customisations (local zones, `address=` overrides, `addn-hosts=` files on the USB stick) — it is the general dnsmasq config for this router, not just for TFTP. - The same drop-in also carries the non-TFTP DNS customisations (local zones, `address=` overrides, `addn-hosts=` files on the USB stick) — it is the general dnsmasq config for this router, not just for TFTP.
  
-## Files on the router (mirror in router-files/)+## Relevant files on the router
  
 | Router path | Purpose | | Router path | Purpose |
 |---|---| |---|---|
-| `mnt/sda1/data/patch-and-restart-dnsmasq.sh` | The real script: patch dnsmasq config, open firewall, restart dnsmasq | +| `/mnt/sda1/data/patch-and-restart-dnsmasq.sh` | The real script: patch dnsmasq config, open firewall, restart dnsmasq | 
-| `mnt/sda1/data/dnsmasq.d/dnsmasq.conf` | dnsmasq drop-in: TFTP/PXE options and general DNS customisations | +| `/mnt/sda1/data/dnsmasq.d/dnsmasq.conf` | dnsmasq drop-in: TFTP/PXE options and general DNS customisations | 
-| `mnt/sda1/asusware.arm/etc/init.d/S99patch-and-restart-dnsmasq` | Symlink to the script above, so the firmware runs it at boot | +| `/mnt/sda1/asusware.arm/etc/init.d/S99patch-and-restart-dnsmasq` | Symlink to the script above, so the firmware runs it at boot | 
-| `mnt/sda1/asusware.arm/lib/ipkg/info/patch-and-restart-dnsmasq.control` | `Enabled: yes` — without it the start script is skipped | +| `/mnt/sda1/asusware.arm/lib/ipkg/info/patch-and-restart-dnsmasq.control` | `Enabled: yes` — without it the start script is skipped | 
-| `usr/sbin/app_init_run.sh` | Firmware script that runs the `/opt/etc/init.d/S*` scripts | +| `/usr/sbin/app_init_run.sh` | Firmware script that runs the `/opt/etc/init.d/S*` scripts | 
-| `usr/sbin/app_get_field.sh` | Firmware script that reads the `Enabled:` field from the `.control` file |+| `/usr/sbin/app_get_field.sh` | Firmware script that reads the `Enabled:` field from the `.control` file |
  
 ## Notes ## Notes
network/ax4200/enable_tftp_booting.1792947057.txt.gz · Last modified: by admin