adyanth / openwrt-tailscale-enabler

Brings Tailscale to low powered OpenWRT devices
MIT License
1.2k stars 185 forks source link

Fails if no internet on boot #4

Closed adyanth closed 2 years ago

adyanth commented 3 years ago

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 commented 2 years ago

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.

marlonfan commented 2 years ago

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

lanrat commented 2 years ago

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.

adyanth commented 2 years ago

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.