Scripts - lukasz1992/asuswrt-xiaomi GitHub Wiki

It is possible to use custom scripts and install own files, as there is a lot of free space in NAND flash.

Details

AsusWRT uses /jffs partition which is internally under ubifs (NAND) or jffs2 (SPI).

NAND /jffs size is 32MB, so sufficient for even larger apps. NOR /jffs size is limited only to 2MB.

AsusWRT uses uClibc, so all OpenWRT packages basing on musl will not run (LEDE and newer).

Autorun

AsusWRT tries to execute file /jffs/.asusrouter on successful boot and /jffs/.autostop on shutdown/reboot.

File must be valid executable and have executable permissions.

Newer versions of AsusWRT disable these scripts, but I reenabled them.