Skip to content

Optional user boot hook: start /mnt/Flash/rc.user from boot.sh - #420

Merged
jamesyc merged 1 commit into
jamesyc:mainfrom
EpicTGuy:feat/rc-user-hook
Nov 9, 2026
Merged

jamesyc merged 1 commit into
jamesyc:mainfrom
EpicTGuy:feat/rc-user-hook

Conversation

@EpicTGuy

@EpicTGuy EpicTGuy commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

As discussed in #403: if /mnt/Flash/rc.user exists and is executable, boot.sh starts it in the background right after its argument check, with no input and no output. rc.local is untouched, and nothing changes when the file is absent, so the NetBSD 4 flash image isn't affected.

Tested on a 5th-gen Time Capsule (NetBSD 6) with v3.8.4: deploy rewrites rc.local, and the user tools still start after reboot. Existing boot/deploy tests pass unchanged.

Closes #403.

TimeCapsuleSMB owns /mnt/Flash/rc.local and rewrites it on deploy, so any
user addition there is lost. boot.sh now starts /mnt/Flash/rc.user in the
background when it exists and is executable. TimeCapsuleSMB never installs,
changes or removes rc.user, so additions survive deploy and uninstall.
The hook lives in boot.sh rather than rc.local so that the size-padded
rc.local of the NetBSD 4 flash image is left untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jamesyc
jamesyc force-pushed the main branch 3 times, most recently from f99c717 to d92ba87 Compare November 8, 2026 14:09
@jamesyc
jamesyc merged commit 1e76813 into jamesyc:main Nov 9, 2026
11 of 12 checks 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.

Feature: optional user boot hook (/mnt/Flash/rc.user)

2 participants