Skip to content

Remove dead scripts - #104

Merged
eliasbakken merged 2 commits into
mainfrom
chore/remove-dead-scripts
Aug 11, 2026
Merged

Remove dead scripts#104
eliasbakken merged 2 commits into
mainfrom
chore/remove-dead-scripts

Conversation

@eliasbakken

@eliasbakken eliasbakken commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

save-setting (singular, one key=value at a time) is superseded by save-settings (plural, bulk-writes the whole file), which is what's actually called from server.go. delete-recore-config, flash-direct, set-boot-media, get-boot-media, and first-boot aren't called from anywhere - server.go, any other script, mkimage.sh, or the Makefile beyond a stale chmod line for two of them.

set-boot-media/get-boot-media had no bin/prod equivalent to begin with, only these unused bin/dev copies.

first-boot is a partial prototype toward #86 (writes a hardcoded klipper-led_effect provisioning script to the eMMC, missing the UI text editor and the runner service that would actually execute it on first boot) - not something usable as-is, so removed rather than kept as a stale starting point.

Not touched: flash-recore (also chmod'd in install_bins, also otherwise uncalled) - its bin/prod equivalent still exists under a new name (flash-from-file), left as-is for now.

Testing

  • make test-bats / go test ./... - no regressions.

save-setting (singular, one key=value at a time) - superseded by
save-settings (plural, bulk-writes the whole file), which is what's
actually called from server.go. delete-recore-config, flash-direct,
set-boot-media, and get-boot-media aren't called from anywhere -
server.go, any other script, mkimage.sh, or the Makefile beyond a
stale chmod line for the latter two.

set-boot-media/get-boot-media had no bin/prod equivalent to begin
with, only these unused bin/dev copies. flash-recore (also chmod'd in
install_bins, also otherwise uncalled) is left alone for now - its
bin/prod equivalent still exists under a new name (flash-from-file).
Looked dead by the earlier survey and is - it's a partial prototype
toward #86 (writes a hardcoded klipper-led_effect provisioning script
to the eMMC, missing the UI text editor and the runner service that
would actually execute it on first boot), not something usable as-is.
The actual #86 implementation should start fresh rather than build on
this.
@eliasbakken
eliasbakken merged commit 520c9d0 into main Aug 11, 2026
2 checks passed
@eliasbakken
eliasbakken deleted the chore/remove-dead-scripts branch August 11, 2026 16:07
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