openwrt-tailscale-enabler icon indicating copy to clipboard operation
openwrt-tailscale-enabler copied to clipboard

Fails if no internet on boot

Open adyanth opened this issue 4 years ago • 4 comments

If the router boots without internet, the tailscaled never starts. I am not sure if there is a possible workaround other than waiting for a ping to succeed before starting the download.

adyanth avatar May 29 '21 13:05 adyanth

How does that help when you boot without internet? The tailscale/d binary downloads will fail, meaning nothing will run.

PS: You do not need to run the tailscale up command on every boot, it is saved in the state file and starting the tailscaled daemon automatically picks the last used configuration.

adyanth avatar May 09 '22 15:05 adyanth

Emm.. But it did work when I set it up this way...

marlonfan avatar May 09 '22 15:05 marlonfan

I fixed this in my fork. However I did a pretty large rewrite.

The binaries are saved to a persistent folder (or /tmp) and are only updated when running tailscale-install.

lanrat avatar Jun 23 '22 23:06 lanrat

Hey @lanrat that will only work if you can save it to a persistent directory. The main problem solved by this repo is that there is no space in flash to do that.

If you have space, consider using the opkg package for tailscale which is smaller in size too I believe.

adyanth avatar Jun 24 '22 03:06 adyanth