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.shand replace theexit_node_ipvalue 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 -
Depending on version:
4.8.0 and above:
Copy/write theswitch-buttonfile below to/etc/config/switch-button4.7.4 and below:
Go toSystem->Toggle Button Settingsand chooseTailscale (On/Off)in the dropdown andApply
Incredible this exists - thank you!
Like @smolz I also have a Slate 7 / GL-BE3600 and used the script by @DougS026 to reverse the switch and toggle tailscale. I also find this button behaviour more naturally.
However, this does not change the behaviour of the display of the device. What is now "on" will show as "off" on the screen. This can be solved by editing
/usr/bin/screen_disp_switchin the if statement at the bottom, just change
"$action" = "on"to"$action" = "off"Maybe not the cleanest way but it does the trick. You can also change the *) Message to be "Tailscale" instead of "Toggle Button", so it will say Tailscale on the display. With that, my full
/usr/bin/screen_disp_switchon 4.8.1 looks like this: