Reprogramme switch on GL-MT300N-V2 (Mango)

I’m curious as to whether its possible to re-programme the switch on a GL-MT300N-V2 so that rather than toggling whether the VPN is on/off it changes the mode from router to extender and back?

It is possible but this is quite complicated.

You can find the script in /etc/init.d/initswitch and /etc/rc.button

Thanks for the pointer @alzhao I’ll have a look around :+1: