So ... for some time ...   Here is my python script, for switching one wifi intreface  ... It is first "one-way" version ... The OPi.GPIO library for python is needed.   https://opi-gpio.readthedocs.io/en/latest/install.html   #!/usr/bin/env python import os #import sys import OPi.GPIO as GPIO import time # Set your pins button = (7) led = (26) cmd_dnsmasq_stop = "systemctl stop dnsmasq.service" cmd_dnsmasq_start = "systemctl start dnsmasq.service" cmd_wpa_supplica