mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 07:56:18 -05:00
The hotspot starts on boot
Nothing started the hotspot since hotspot_on_startup moved out of the API, and NetworkManager does not autoconnect the Hotspot connection. The Controller now starts it once per boot unless hotspot.on_startup is false; a legacy wrolpi.yaml hotspot_on_startup: false is migrated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b83a9cf017
commit
dfa03c662e
7 changed files with 172 additions and 4 deletions
|
|
@ -123,6 +123,10 @@ async def lifespan(app: FastAPI):
|
|||
else:
|
||||
logger.info("Primary drive not mounted - using default configuration")
|
||||
|
||||
# After the config (and any migrated hotspot settings) are loaded. Starting can take a while; do not block.
|
||||
from controller.lib.admin import start_hotspot_on_boot
|
||||
app.state.hotspot_on_boot_task = asyncio.create_task(asyncio.to_thread(start_hotspot_on_boot))
|
||||
|
||||
# Initialize cached status
|
||||
app.state.cached_status = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue