Commandline enable disable guest network for button_released in ar150

beta v3.026 firmware on the ar150 I would like to make a mod so when you hold reset 3 seconds and release it toggles the guest network

is it better to disable guest virtual interface or guest wireless wifi interface?

LOOK FOR…INSERT CODE HERE TO TOGGLE GUEST NETWORK OR WIFI
BELOW.
THANKS
any reccomendations on a line of code here? I looked in gl_util.sh but still a work in progress

/usr/bin/button_released at the bottom

elif [ “$reset_pressed_duration” -gt 3 ]; then
INSERT CODE HERE TO TOGGLE GUEST NETWORK OR WIFI
change to restart_network instead of reset_network
/etc/init.d/gl_tertf start
/etc/init.d/led restart

Good place to start would be here…

https://openwrt.org/docs/guide-user/network/wifi/guestwifi/guest-wlan

UCI can do the enable/disable Guest WLAN on the fly.