This script allows you to toggle tailscale settings using the physical side switch on the GL-iNet Beryl AX.
To install, copy the below file to /etc/gl-switch.d/tailscale.sh
and replace the exit_node_ip
value with your exit node ip address.
Make sure to set the execute bit on the new file: chmod +x /etc/gl-switch.d/tailscale.sh
Then go to System
-> Toggle Button Settings
and choose Tailscale (On/Off)
in the dropdown and Apply
Here is what I'm using, and I believe it addresses @lucfig's question. It differs from the original by: a) It turns Tailscale completely off or on (with an exit node) as @rdgerken mentions, and b) This script switches what side is on and off from the factory. Below will turn off Tailscale when the switch is to the left and turn it on when the switch is to the right (the side with the dot). This makes more sense to me.
As noted, be sure to set execute rights on the tailscale.sh file after copying to the router.