Mailinglist Archive: opensuse (1108 mails)

< Previous Next >
Re: [opensuse] Re: What would be the proper command to swtich off wlan?
On 08/26/2018 08:42 AM, James Knott wrote:
On 08/26/2018 05:08 AM, Carlos E. R. wrote:
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.
No, I don't know what your script does, but it does appear to be causing
the problem.
Yes, I can modify my script to detect that eth is up when it gets called
for wlan. That's a good idea.
It might eliminate the problem with your script.


A better command might be ip link show dev eth0|grep "state UP" as it
doesn't seem to have the same delay in changing as ip route show does.

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

< Previous Next >