Should work on every device, so give it a try
Yup works perfectly. Awesome - thank you!
Never had an issue with @admon script until today when I attempted to update my MT3000/Berly AX.
This is the error I receive:
root@GL-MT3000:~# wget -O update-tailscale.sh https://raw.githubusercontent.com/Admonstrator/glinet-tailscale-updater/ma
in/update-tailscale.sh \
&& sh update-tailscale.sh
Downloading 'https://raw.githubusercontent.com/Admonstrator/glinet-tailscale-updater/main/update-tailscale.sh'
Connecting to 2606:50c0:8003::154:443
Connection error: Connection failed
root@GL-MT3000:~#
Seems like you can't connect by IPv6 - maybe disabling it on the router can fix this.
Thank you @admon I Enabled IPv6 on the router and then disabled it. I ran your script again and it worked flawlessly.
Just did this on a Flint2 and it works well (I have 1.66.4 now). Thanks
One thing I would like to ask the author: Is it possible to make the exit node stay active and not stop advertising after a restart or after some time? This is the script I used to turn it on:
tailscale up --advertise-exit-node --accept-dns=false --accept-routes
Thanks a lot
The script was updated to use pre-built tiny tailscale versions, which will save plenty of space. On MT6000 (Flint2) the difference is from 40 MiB to 6 MiB!
Thanks @admon do you recommend running the script again since you updated it?
Yep, totally recommend!
love the script / works great
but can I gently suggest a different colour, other than yellow?
It's very difficult to read to following, for example:
┌──────────────────────────────────────────────────┐
| Are you sure you want to continue? (y/N) |
└──────────────────────────────────────────────────┘
Yellow is bad to read but the white is fine? Or do you use a light terminal with black font?
yes / On MacOS, standard is white background with black text.... however I updated my terminal settings to make my background black...
FWIW on a Mac - open Terminal.
Choose Terminal ->Settings -> select, "On startup, open: (select from dropdown) PRO
This will turn your background to Black...
No, it's not weird. The tiny tailscale version is build based of the latest release available on GitHub. Since Tailscale did not update the version there, the newest version isn't available yet.
You can use the big binaries by adding ← not needed anymore, my script was updated to do it automatically.--no-tiny
or you simply need to wait until they update the codebase.
Thanks for the explanation.
Tried to install on AXT1800 latest firmware using the suggested --ignore-free-space flag
Was unfortunately not successful even after restarting both tailscale and then the router, any ideas?
root@GL-AXT1800:~# wget -O update-tailscale.sh https://raw.githubusercontent.com
/Admonstrator/glinet-tailscale-updater/main/update-tailscale.sh \
> && sh update-tailscale.sh --ignore-free-space
--2024-06-20 11:31:32-- https://raw.githubusercontent.com/Admonstrator/glinet-tailscale-updater/main/update-tailscale.sh
Resolving raw.githubusercontent.com... 185.199.108.133, 185.199.110.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26457 (26K) [text/plain]
Saving to: 'update-tailscale.sh'
update-tailscale.sh 100%[===================>] 25.84K --.-KB/s in 0.006s
2024-06-20 11:31:32 (4.26 MB/s) - 'update-tailscale.sh' saved [26457/26457]
[2024-06-20 11:31:32] [→] Checking for script updates
[2024-06-20 11:31:32] [✓] The script is up to date
┌────────────────────────────────────────────────────────────────────────┐
│ GL.iNet router script by Admon 🦭 for the GL.iNet community │
| Version: 2024.06.19.03 |
├────────────────────────────────────────────────────────────────────────┤
│ WARNING: THIS SCRIPT MIGHT POTENTIALLY HARM YOUR ROUTER! │
│ It's only recommended to use this script if you know what you're doing.│
├────────────────────────────────────────────────────────────────────────┤
│ This script will update Tailscale on your router. │
│ │
│ Prerequisites: │
│ 1. At least 15 MB of free space. │
│ 2. Firmware version 4 or higher. │
│ 3. Architecture arm64, armv7 or mips. │
└────────────────────────────────────────────────────────────────────────┘
[2024-06-20 11:31:32] [→] Checking if prerequisites are met
[2024-06-20 11:31:32] [✓] Firmware version: 4
[2024-06-20 11:31:32] [✓] Architecture: armv7
[2024-06-20 11:31:32] [✓] Available space: 52 MB
[2024-06-20 11:31:32] [!] xz is not installed. We can install it for you later.
[2024-06-20 11:31:32] [✓] Prerequisites are met.
┌──────────────────────────────────────────────────┐
| Are you sure you want to continue? (y/N) |
└──────────────────────────────────────────────────┘
y
┌────────────────────────────────────────────────────────────────────────┐
│ WARNING: --ignore-free-space flag is used. This might potentially harm │
│ your router. Use it at your own risk. │
│ You might need to reset your router to factory settings if something │
│ goes wrong. │
└────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────┐
| Are you sure you want to continue? (y/N) |
└──────────────────────────────────────────────────┘
y
[2024-06-20 11:31:44] [→] Ok, continuing
[2024-06-20 11:31:44] [→] Detecting latest tiny tailscale version
[2024-06-20 11:31:45] [→] The latest tailscale version is: 1.68.0
[2024-06-20 11:31:45] [→] Downloading latest tailscale version
[2024-06-20 11:31:45] [→] Creating backup of tailscale config
[2024-06-20 11:31:45] [✓] Backup created: /root/tailscale_config_backup/2024-06-20_11-31-45.tar.gz
[2024-06-20 11:31:45] [→] The binaries will not be backed up, you can restore them by using the --restore flag.
[2024-06-20 11:31:45] [→] Stopping tailscale
[2024-06-20 11:31:50] [→] Moving tailscale to /usr/sbin
[2024-06-20 11:31:50] [→] Removing temporary files
[2024-06-20 11:31:50] [→] Modifying gl_tailscale script to work with the new tailscale version
[2024-06-20 11:31:50] [✓] gl_tailscale script modified successfully
[2024-06-20 11:31:50] [→] Restarting tailscale
┌────────────────────────────────────────────────────────────────────────────────┐
| The update was successful. Do you want to make the installation permanent? |
| This will make your tailscale installation persistent over firmware upgrades. |
| Please note that this is not officially supported by GL.iNet. |
| It could lead to issues, even if not likely. Just keep that in mind. |
| In worst case, you might need to remove the config from /etc/sysupgrade.conf |
└────────────────────────────────────────────────────────────────────────────────┘
> Do you want to make the installation permanent? (y/N)
y
[2024-06-20 11:31:55] [→] Making installation permanent
[2024-06-20 11:31:55] [→] Modifying /etc/sysupgrade.conf
[2024-06-20 11:31:55] [✓] Script finished successfully. The new tailscale version (software, daemon) is:```
Why do you think it wasn't successful?
Tailscale icon Orange in GL-Inet GUI and not show binding or IP address, machines list on tailscale showing old (1.58.2) version and not connected.