network:ax4200:install_additional_software

This is an old revision of the document!


Install additional software

You can get a system for installing additional software by:

  1. plugging in a partitioned, ext4 formatted USB device
  2. enabling Download Master on that USB device

The Download Master installation mounts a subdirectory on the USB device to opt/bin and it fetches a bunch of packages including ipkg, the same tool that manages packages on OpenWRT.

Entware

Entware is a repository of prebuilt packages that can be installed on the USB device.

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)

On recent stock firmware the script_usbmount/script_usbumount NVRAM variables no longer work (their values are discarded shortly after nvram commit), so they cannot be used to run something at boot. Instead you can abuse the app mechanism that Download Master/Optware uses, as described in the Entware wiki:

  1. Discovery: The firmware scans mounted USB partitions for a directory named asusware.arm at the partition root (suffix depends on architecture; asusware.arm on this aarch64 router). It exposes that directory as /opt — this is why /opt exists even without Entware. During detection the partition is unmounted and re-mounted, so anything mounted earlier from it is gone; do your own mounting inside the init script.
  2. Init scripts: At boot/mount the firmware runs `/usr/sbin/app_init_run.sh allpkg star
network/ax4200/install_additional_software.1792945338.txt.gz · Last modified: by admin