Mailinglist Archive: opensuse (1108 mails)

< Previous Next >
Re: [opensuse] Re: What would be the proper command to swtich off wlan?
On 08/25/2018 09:01 PM, James Knott wrote:
I bet that if Carlos used Wireshark to watch the traffic, he wouldn't
see it coming from WiFi, when Ethernet is connected.  What his scripts
do is another matter and I suspect that may be where the problem lies.

You misunderstand what my script is and does.

This script is "/etc/NetworkManager/dispatcher.d/mine", and is called
directly by Network manager whenever any interface goes up or down.
Metric does not matter here. Eth goes up, the script gets called by NM.
Then wlan goes up, my script gets called again.

Yes, I can modify my script to detect that eth is up when it gets called
for wlan. That's a good idea.

I will do it by writing a status flag, not by querying the network,
though. Maybe I also need to worry about atomicity.

Cheers / Saludos,

Carlos E. R.

(from openSUSE 15.0 (Legolas))

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups