From c2b15fb7ec64bc420dba4c72feaf914621fbdfb0 Mon Sep 17 00:00:00 2001 From: Weston Blieden Date: Tue, 14 Apr 2026 15:29:20 +0200 Subject: [PATCH] fix: pass --hostname=$(hostname) to tailscale up so node name matches camera hostname --- aarch64/app/Tailscale_VPN | 2 +- aarch64_ROOT/app/Tailscale_VPN | 2 +- aarch64_custom/app/lib/start_tailscale.sh | 2 +- arm/app/Tailscale_VPN | 2 +- arm_ROOT/app/Tailscale_VPN | 2 +- arm_custom/app/lib/start_tailscale.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/aarch64/app/Tailscale_VPN b/aarch64/app/Tailscale_VPN index da0d84e..db4f573 100755 --- a/aarch64/app/Tailscale_VPN +++ b/aarch64/app/Tailscale_VPN @@ -25,7 +25,7 @@ TAILSCALED_PID=$! sleep 2 logger -t "Tailscale_VPN" "Connecting to Tailscale network (scroll to bottom for auth URL if prompted)" -"$APP_DIR/lib/tailscale" --socket="$STATE_DIR/tailscaled.sock" up 2>&1 | logger -t "Tailscale_VPN" +"$APP_DIR/lib/tailscale" --socket="$STATE_DIR/tailscaled.sock" up --hostname="$(hostname)" 2>&1 | logger -t "Tailscale_VPN" logger -t "Tailscale_VPN" "Tailscale VPN is running" logger -t "Tailscale_VPN" "HTTP/HTTPS proxy: http://127.0.0.1:8080" diff --git a/aarch64_ROOT/app/Tailscale_VPN b/aarch64_ROOT/app/Tailscale_VPN index 70ece26..54f1ee3 100755 --- a/aarch64_ROOT/app/Tailscale_VPN +++ b/aarch64_ROOT/app/Tailscale_VPN @@ -22,7 +22,7 @@ TAILSCALED_PID=$! sleep 2 logger -t "Tailscale_VPN" "Connecting to Tailscale network (scroll to bottom for auth URL if prompted)" -"$APP_DIR/lib/tailscale" --socket="$STATE_DIR/tailscaled.sock" up --accept-routes 2>&1 | logger -t "Tailscale_VPN" +"$APP_DIR/lib/tailscale" --socket="$STATE_DIR/tailscaled.sock" up --accept-routes --hostname="$(hostname)" 2>&1 | logger -t "Tailscale_VPN" logger -t "Tailscale_VPN" "Tailscale VPN is running" wait $TAILSCALED_PID diff --git a/aarch64_custom/app/lib/start_tailscale.sh b/aarch64_custom/app/lib/start_tailscale.sh index b04a2ce..969dbc3 100644 --- a/aarch64_custom/app/lib/start_tailscale.sh +++ b/aarch64_custom/app/lib/start_tailscale.sh @@ -51,7 +51,7 @@ TAILSCALED_PID=$! sleep 2 # Build up the command based on available parameters -TAILSCALE_CMD="$TAILSCALE_PATH --socket=$SOCKET_PATH up" +TAILSCALE_CMD="$TAILSCALE_PATH --socket=$SOCKET_PATH up --hostname=$(hostname)" if [ -n "$CUSTOM_SERVER" ]; then logger -t "tailscale_script" "Using custom server: $CUSTOM_SERVER" diff --git a/arm/app/Tailscale_VPN b/arm/app/Tailscale_VPN index da0d84e..db4f573 100755 --- a/arm/app/Tailscale_VPN +++ b/arm/app/Tailscale_VPN @@ -25,7 +25,7 @@ TAILSCALED_PID=$! sleep 2 logger -t "Tailscale_VPN" "Connecting to Tailscale network (scroll to bottom for auth URL if prompted)" -"$APP_DIR/lib/tailscale" --socket="$STATE_DIR/tailscaled.sock" up 2>&1 | logger -t "Tailscale_VPN" +"$APP_DIR/lib/tailscale" --socket="$STATE_DIR/tailscaled.sock" up --hostname="$(hostname)" 2>&1 | logger -t "Tailscale_VPN" logger -t "Tailscale_VPN" "Tailscale VPN is running" logger -t "Tailscale_VPN" "HTTP/HTTPS proxy: http://127.0.0.1:8080" diff --git a/arm_ROOT/app/Tailscale_VPN b/arm_ROOT/app/Tailscale_VPN index 70ece26..54f1ee3 100755 --- a/arm_ROOT/app/Tailscale_VPN +++ b/arm_ROOT/app/Tailscale_VPN @@ -22,7 +22,7 @@ TAILSCALED_PID=$! sleep 2 logger -t "Tailscale_VPN" "Connecting to Tailscale network (scroll to bottom for auth URL if prompted)" -"$APP_DIR/lib/tailscale" --socket="$STATE_DIR/tailscaled.sock" up --accept-routes 2>&1 | logger -t "Tailscale_VPN" +"$APP_DIR/lib/tailscale" --socket="$STATE_DIR/tailscaled.sock" up --accept-routes --hostname="$(hostname)" 2>&1 | logger -t "Tailscale_VPN" logger -t "Tailscale_VPN" "Tailscale VPN is running" wait $TAILSCALED_PID diff --git a/arm_custom/app/lib/start_tailscale.sh b/arm_custom/app/lib/start_tailscale.sh index b04a2ce..969dbc3 100644 --- a/arm_custom/app/lib/start_tailscale.sh +++ b/arm_custom/app/lib/start_tailscale.sh @@ -51,7 +51,7 @@ TAILSCALED_PID=$! sleep 2 # Build up the command based on available parameters -TAILSCALE_CMD="$TAILSCALE_PATH --socket=$SOCKET_PATH up" +TAILSCALE_CMD="$TAILSCALE_PATH --socket=$SOCKET_PATH up --hostname=$(hostname)" if [ -n "$CUSTOM_SERVER" ]; then logger -t "tailscale_script" "Using custom server: $CUSTOM_SERVER"