This is an old revision of the document!
Table of Contents
Install additional software
You can get a system for installing additional software by:
- plugging in a partitioned, ext4 formatted USB device
- enabling
Download Masteron 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:
- Discovery: The firmware scans mounted USB partitions for a directory named
asusware.armat the partition root (suffix depends on architecture;asusware.armon this aarch64 router). It exposes that directory as/opt— this is why/optexists 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. - Init scripts: At boot/mount the firmware runs `/usr/sbin/app_init_run.sh allpkg star