Skip to content

Conversation

@twells46
Copy link
Contributor

Migrate startup routine from script to systemd.

@ronperris
Copy link

This PR fixes the bug where the web interface fails to start when the Wombat is connected to an external WiFi network instead of running as an Access Point.

The Bug

In wombat_launcher.sh, the script waits for the AP to be created and exits if it times out:

if [[ $elapsed_time -ge $TIMEOUT ]]; then
    echo "[ERROR] AP '$AP_NAME' not found within $TIMEOUT seconds."
    exit 1 # Exit if the AP wasn't found
fi

This prevents the web server from starting when the device is in client mode.

How This PR Fixes It

By replacing wombat_launcher.sh with systemd services, the new voldigate.service only depends on:

After=network.target
Wants=network.target
After=botui.service

The web server will start as long as any network is available, regardless of whether the device is in AP mode or connected to external WiFi.

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.

5 participants