View Single Post
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#96
Originally Posted by omeriko9 View Post
And for whoever is referring to this bug fix, please explain it to me, as I don't want to apply any fixes without understanding what exactly they do, and unfortunatelly I'm no shell script master...
the script, when put in /etc/network/if-post-down.d/, will be called every time a network interface goes up or comes down.

if it wasn't called during a "stop" event, do nothing (exit script).
if the network connection is neither a WLAN infrastructure nor WLAN adhoc, do nothing.

finally, really bring down the interface (ifconfig down).
at this point the interface must be a WLAN being disconnected, because all other possibilities have been ruled out by the two "exit" statements.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 

The Following User Says Thank You to SubCore For This Useful Post: