Repository navigation
Optional user boot hook: start /mnt/Flash/rc.user from boot.sh - #420
Merged
Merged
Conversation
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
force-pushed
the
main
branch
3 times, most recently
from
November 8, 2026 14:09
f99c717 to
d92ba87
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As discussed in #403: if
/mnt/Flash/rc.userexists and is executable,boot.shstarts it in the background right after its argument check, with no input and no output.rc.localis 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:
deployrewritesrc.local, and the user tools still start after reboot. Existing boot/deploy tests pass unchanged.Closes #403.