- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
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
|
||
| bootstate.go | ||
| firmware.go | ||
| go.mod | ||
| names.go | ||
| README.md | ||
| release.go | ||
| routerfw_test.go | ||
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,ParseBootStateandOtherfor the slots, andReadStateandWriteStatefor the router's record of trials, results and rejected versions. - Home names:
CheckName,RenderNamesandParseNamesfor 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.