Installs and checks Asuswrt-Merlin on the RT-BE88U and holds the home names file its dnsmasq reads (from at-home-tools, AHT-258)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nelson 02d25c6ed1
All checks were successful
Suite release / module (push) Successful in 10s
Suite release / reserve (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
Suite release / scope (push) Successful in 6s
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / finalize (push) Has been skipped
routerfw moves in from at-home-tools, unchanged (#1)
2026-11-29 22:56:09 -08:00
bootstate.go routerfw moves in from at-home-tools, unchanged (#1) 2026-11-29 22:56:09 -08:00
firmware.go routerfw moves in from at-home-tools, unchanged (#1) 2026-11-29 22:56:09 -08:00
go.mod routerfw moves in from at-home-tools, unchanged (#1) 2026-11-29 22:56:09 -08:00
names.go routerfw moves in from at-home-tools, unchanged (#1) 2026-11-29 22:56:09 -08:00
README.md routerfw moves in from at-home-tools, unchanged (#1) 2026-11-29 22:56:09 -08:00
release.go routerfw moves in from at-home-tools, unchanged (#1) 2026-11-29 22:56:09 -08:00
routerfw_test.go routerfw moves in from at-home-tools, unchanged (#1) 2026-11-29 22:56:09 -08:00

routerfw

Installs and checks Asuswrt-Merlin on the ASUS RT-BE88U, from a home PC (router firmware install) or on the router itself (router-agent), and holds the home names file the router's dnsmasq reads.

The router has two firmware slots. bcm_flasher writes the slot not running and marks it to boot from then on; an install then marks the running slot permanent again and the new one to boot once, so a new firmware that never comes up properly is left behind by the next reboot or power cycle. It is made permanent only after the router, running it, has reached the internet and resolved a public name.

  • Firmware: LatestRelease (from Asuswrt-Merlin's download page, with each zip's SHA-256), unpacking a release against both its sums, staging it to boot once and deciding a trial, RunningVersion, ParseBootState and Other for the slots, and ReadState and WriteState for the router's record of trials, results and rejected versions.
  • Home names: CheckName, RenderNames and ParseNames for the hosts file homesvc writes, and the dnsmasq line that reads it.

It was at-home-tools' routerfw package until shared packages got repositories of their own (AGT-85, AHT-258); router, router-agent and homesvc import it (AHT-254).

Using it

require forgejo.romaine.life/romaine-life/routerfw v0.1.0

Testing

go test ./..., against recorded router output and a fake shell; no router is touched.

Shipping

A library: the release-module topic in pipeline-templates' fleet.json tags each merge that changes the code, and every fleet repository whose go.mod requires it gets a take-up. Forgejo pushes it to its public GitHub copy, which proxy.golang.org serves to builds outside CI.