Skip to content

mgu-uplink: an app's lease file written only when the lease changes - #346

Merged
robertnisipeanu merged 1 commit into
mainfrom
emmc-uplink
Nov 19, 2026
Merged

robertnisipeanu merged 1 commit into
mainfrom
emmc-uplink

Conversation

@robertnisipeanu

Copy link
Copy Markdown
Owner

An app's lease file (/var/opt/public/oap/oap_<uid>/data/uplink.json) is rewritten only when the lease changes, not at each renewal of the same lease. /run/mgu-uplink/lease.json (in RAM) still carries each renewal's time. The README says what an app file's updated means.

AI: Claude Code, Claude Opus 5.5

Tested: make test-docker (go vet, go test): pass, including a new test that a renewal changing only its time leaves the file as it is, and that new DNS servers or a missing file are still written. Not tested on a car.

Human review: no

Screenshots: n/a

🤖 Generated with Claude Code

A renewal of the same lease leaves each app's uplink.json as it is.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robertnisipeanu
robertnisipeanu merged commit bca0096 into main Nov 19, 2026
1 check passed
@robertnisipeanu
robertnisipeanu deleted the emmc-uplink branch November 19, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant