Skip to content

Show hostname, MAC, and IPs on the OLED from boot - #15

Merged
joelhans merged 1 commit into
mainfrom
joelhans/persistent-oled
Jul 10, 2026
Merged

Show hostname, MAC, and IPs on the OLED from boot#15
joelhans merged 1 commit into
mainfrom
joelhans/persistent-oled

Conversation

@joelhans

Copy link
Copy Markdown
Collaborator

New little-internet-oled.service paints the node's identity on the panel from boot: hostname in the yellow strip, eth0's MAC and each interface's IPv4 in the blue body (live: (down) / (no IPv4) states). Script lives in tools/status-oled, installed to /opt/little-internet by a new 07-run.sh stage.

The on-demand scripts (arp_oled.py, oled tests) share the panel via a claim file in /run/little-internet (root:i2c 0775, so no sudo): they create it to pause the status display and remove it on exit to resume. The service wakes the panel on resume (luma's atexit powers the display off) and removes stale claims whose writer PID is dead. On-demand scripts trap SIGTERM so finally cleanup runs.

Tested on pi-foo-01/02: manual service install, claim handoff, SIGTERM kill, stale-claim recovery, and boot via reboot. The pi-gen stage itself is validated by the next image build.

@joelhans
joelhans merged commit 959b200 into main Jul 10, 2026
1 check passed
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