davesteele / comitup

Bootstrap Wifi support over Wifi
https://davesteele.github.io/comitup/
GNU General Public License v2.0
322 stars 54 forks source link

Turn on wifi connectivity only when specify pin state is high #22

Closed venkatyaragalla closed 5 years ago

venkatyaragalla commented 5 years ago

I would like to turn on comitup WI-FI connectivity only when raspberry pi pin 18 is HIGH other wise COMITUP WI-FI connectivity turn off. Is it any possible?

davesteele commented 5 years ago

Comitup is a systemd service, which also uses the NetworkManager service. You could write another that turns them on and off based on the GPIO pin.

venkatyaragalla commented 5 years ago

Thank you ,Could you please help us where to implement in which file.

davesteele commented 5 years ago

Well, the systemd configuration files that define the services are in /lib/systemd/system/ (try 'dpkg --listfiles comitup | grep systemd').

Any new service would need to start, probably before these two, monitor the GPIO, and enable/disable and start/stop those services. You'll need to read up on systemd and GPIO interfaces. It will be a bit of work first time through.