add 192.168.42.10 as default ip with update script

This commit is contained in:
2026-02-12 17:08:23 +01:00
parent d6230e7522
commit 3322b9edf4
2 changed files with 10 additions and 0 deletions

View File

@@ -4,6 +4,8 @@
- this projects uses poetry for package management - this projects uses poetry for package management
- if something should be run in a python env use 'poetry run' - if something should be run in a python env use 'poetry run'
# Environment
- this application normally runs on an embedded linux on a cm4
## Application ## Application
- this is a bluetooth Auracast transmitter application - this is a bluetooth Auracast transmitter application

View File

@@ -4,6 +4,14 @@ set -e
# This script installs, enables, and restarts the auracast-server and auracast-frontend services # This script installs, enables, and restarts the auracast-server and auracast-frontend services
# Requires sudo privileges # Requires sudo privileges
# Ensure static fallback IP is configured on eth0 (for direct laptop connection)
FALLBACK_IP="192.168.42.10/24"
if ! nmcli -g ipv4.addresses con show "Wired connection 1" 2>/dev/null | grep -q "$FALLBACK_IP"; then
echo "Adding static fallback IP $FALLBACK_IP to eth0..."
sudo nmcli con modify "Wired connection 1" +ipv4.addresses "$FALLBACK_IP"
sudo nmcli con up "Wired connection 1"
fi
# Copy system service file for frontend # Copy system service file for frontend
sudo cp /home/caster/bumble-auracast/src/service/auracast-frontend.service /etc/systemd/system/auracast-frontend.service sudo cp /home/caster/bumble-auracast/src/service/auracast-frontend.service /etc/systemd/system/auracast-frontend.service