-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support for automatically installing Tailscale after a firmware upgrade #54
Conversation
Thanks for this PR! I'll get it setup on a UDM Pro and will report back when the next firmware update after |
Tested and initially ran into an issue where curl would not download the package linked. After manually downloading it and using SCP to transfer it over I am only seeing the following message:
Running the update function responds with:
Attempting to run Finally I just ran the following from the script directly in the terminal:
This was successful. Will post an update after the next firmware update is released and installed. |
Thank you @GlitchWitch, I've made some improvements to the commands and testing guidance based on what you've shared (there's now a I've not tested this yet, but you may also be able to re-install |
…l service after a firmware upgrade
…etwork becomes available to install Tailscale
This PR adds experimental support for automatically installing Tailscale following a UniFi OS 2.x firmware upgrade (as well as updating Tailscale after a reboot, if an update is available). It does so by installing a
systemd
unit which runs beforetailscaled
in the startup sequence and triggers the/data/manage.sh on-boot
command (in much the same way as the UniFi OS 1.x on_boot.d script worked).I have not had an opportunity to test this on a full firmware upgrade, however indications are that
systemd
units persist across firmware upgrades, which should ensure that this works as expected.Testing Steps
To validate that this new release works correctly on your device, please follow these steps to install a prerelease version of it:
Build / Package
pipeline - here) onto your device.unzip -oq /tmp/tailscale-udm-pre.zip -d /tmp
/data/tailscale
directory usingtar xzf /tmp/tailscale-udm.tgz -C /data/
/data/tailscale/manage.sh install!
Installing pre-start script to install Tailscale on firmware updates.
is printed to your terminal.ubnt-systool fwupdate <url-of-firmware-package>
and confirm that Tailscale is present and running after the firmware update completes. (Note that you can install the current firmware version if you wish to test immediately).See #38 for further information.