mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-18 08:36:13 +00:00
Two follow-ups from the #471 field reports on the BETA `setup enable-ssh`: 1. enable-ssh: when sshd (:22) does not come up within the wait window, this is no longer treated as a hard error. On some devices (e.g. the Wireless Link Adapter) the envswitch injection is accepted but sshd only starts after the speaker restarts. The command now prints a warning with power-cycle + retry guidance (and the exact ssh command), deliberately leaves the injected boseurls in place so a restart re-triggers the unlock, and exits cleanly instead of failing. 2. XML migration: re-apply the boseurls over telnet at the end of migrateViaXML so the runtime layer reported by `getpdo CurrentSystemConfiguration` matches the persisted SoundTouchSdkPrivateCfg.xml. After enable-ssh bootstraps SSH, that runtime layer still points at the placeholder (https://aftertouch.invalid), so the preflight cross-check keeps warning that margeServerUrl/swUpdateUrl differ between transports until a reboot. The re-apply reconciles it now. Best-effort: if telnet is unavailable (e.g. port 17000 was closed via --close-17000), a reboot still reconciles the layers, so it only logs a note and never fails the migration. Tests cover the re-apply command and its best-effort (non-fatal) behavior. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>