Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Commit 1451e0e

Browse files
committed
tailscale_hook: add timeout (default 20s)
this should ensure that initialisation doesn't hang if not logged in or network isn't available
1 parent a123050 commit 1451e0e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ sourced as a busybox ash shell script.
99

1010
tailscale_port: argument to -port (default: 41641)
1111
tailscaled_args: other args to pass to tailscaled
12+
tailscale_timeout: argument to --timeout (default: 20s)
1213
tailscale_args: other args to pass to tailscale up
1314

1415
> Note: This project is not affiliated with Tailscale in any way

tailscale_hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ run_hook() {
1111
(
1212
[ -r /etc/tailscale/tailscaled.conf ] && . /etc/tailscale/tailscaled.conf
1313
tailscaled -state "/etc/tailscale/tailscaled.state" -port "${tailscale_port:-41641}" $tailscaled_args &
14-
tailscale up $tailscale_args
14+
tailscale up --timeout="${tailscale_timeout:-20s}" $tailscale_args
1515
)
1616
}
1717

tailscale_install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ help() {
3838
3939
tailscale_port: argument to -port (default: 41641)
4040
tailscaled_args: other args to pass to tailscaled
41+
tailscale_timeout: argument to --timeout (default: 20s)
4142
tailscale_args: other args to pass to tailscale up
4243
4344
See the README for security considerations and full setup instructions.

0 commit comments

Comments
 (0)