#!/bin/bash
sudo bash -c 'nohup tailscale up --hostname=mp-box-001 >/tmp/ts2.log 2>&1 &'
sleep 9
echo "=== ts up log ==="
cat /tmp/ts2.log 2>/dev/null
echo "=== status ==="
tailscale status 2>&1 | head -5
echo "=== self ip ==="
tailscale ip -4 2>/dev/null
