8 lines
144 B
Bash
Executable File
8 lines
144 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if tailscale status --json 2>/dev/null | grep -q '"BackendState": "Running"'; then
|
|
tailscale down
|
|
else
|
|
tailscale up
|
|
fi
|