eellak / epidose

Privacy-preserving epidemic dosimeter based on DP-3T contact tracing
Apache License 2.0
52 stars 6 forks source link

Disable WiFi on reboot #60

Closed stefanos1316 closed 3 years ago

stefanos1316 commented 3 years ago

Issue #56

dspinellis commented 3 years ago

Not sure this is the best way. Can't you specify a default network configuration where the WiFi is off until brought up?

stefanos1316 commented 3 years ago

I have searched on the Web but mostly I find how to disable it through the /boot/config.txt or similarly, the way I did it. Any idea of how I should search for it?

stefanos1316 commented 3 years ago

@dspinellis adding this @reboot sudo ifdown wlan0in the crontab can do the job too.

dspinellis commented 3 years ago

I was hoping to disable the automatic bringing up of the interface, but I see no obvious method.

dspinellis commented 3 years ago

rc.local seems OK. Please verify that it actually works, because it needs to be executed after the interface is brought up, right? Then submit the PR (I cannot reopen this one).

stefanos1316 commented 3 years ago

If we add the ip link set wlan0 down in the rc.local, it starts the device where the wlan0 has no IP address and when executing the ip link set wlan0 up it allows wlan0 to get an IP address. This is what you mean by verifying it?

dspinellis commented 3 years ago

Yes, OK.