Hi there
some people wonder how to update the pretty old Tailscale version on devices like the Flint or Flint2. For your convenience, I created a script to automate this process.
Permanent feature
I added the option to make all changes permanent. The script therefore only needs to be executed once, the effects are then permanent. Even across firmware updates. On the downside, it might create trouble when you flash a way older firmware. Make sure to use --restore
before.
You need to re-run the script if there is a new tailscale version.
If everything fails, flashing using Uboot will fix it .
Dependencies
Currently, the update-process is only supported on devices using ARM64, ARMv7 and MIPS architecture.
Quick-start
You can run it by using the following command directly on your router via SSH.
wget -O update-tailscale.sh https://raw.githubusercontent.com/Admonstrator/glinet-tailscale-updater/main/update-tailscale.sh \
&& sh update-tailscale.sh
Download
Running on devices with low free space
You can use --ignore-free-space
to ignore the free space check. This is useful for devices with low free space. By default, the tiny-tailscale binaries will be used, so all in all, 15 MB of free space during the run of the script should be totally fine.
Could potentially break your router if there is not enough free space.
Running it without confirmation
Use the --force
flag to run the script without any confirmation. Combination with --ignore-free-space
is possible.
Usage
./update-tailscale.sh [--ignore-free-space] [--force] [--restore] [--no-upx] [--no-download] [--no-tiny] [--help]
Argument | Description |
---|---|
--ignore-free-space |
Ignore free space check |
--force |
Do not ask for confirmation |
--restore |
Restore tailscale to factory default |
--no-upx |
Do not compress tailscale with UPX |
--no-download |
Do not download the newest tailscale version |
--no-tiny |
Will not use tiny tailscale binaries |
--help |
Show this help |
Disclaimer
This script is provided as is and without any warranty. Use it at your own risk.
It may break your router, your computer, your network or anything else.
It may even burn down your house You have been warned!
Alternative way
You can update Tailscale on your own manually.
Simply get the necessary files from the official website and replace the files on your router accordingly.
Restoring
Simply run the script with the --restore
argument.
Manual way:
-
To revert the changes, replace the
/usr/sbin/tailscaled
and/usr/sbin/tailscale
files with the original files. -
Remove all tailscale lines from
/etc/sysupgrade.conf