Use the status argument instead of checking IP address #1

Merged
merged 1 commit into from May 19, 2012

Conversation

Projects
None yet
2 participants
Contributor

hagabaka commented May 11, 2012

Hi,

I just found this script, and tried it, but it sets polipo to offline whether I disconnect or connect in NetworkManager. The script tries to detect connection status by IP address, but according to
https://wiki.archlinux.org/index.php/NetworkManager#Network_Services_with_NetworkManager_Dispatcher , the connection status is passed to dispatcher scripts as the second argument, so I modified it to just use that. I also changed IFACE to the first argument according to the same reference. I haven't written dispatcher scripts before, but this version fixes the problem for me.

smartin015 merged commit 39cb2dc into smartin015:master May 19, 2012

Owner

smartin015 commented May 19, 2012

Thanks! I wasn't aware of the passed connection argument. Good find :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment