Page 2 of 2

Re: [Plugin] IfaceWatch - Watch for IP changes on interface

Posted: Sat Oct 15, 2016 1:17 pm
by Sphinxes
bro wrote:I presume you are running LInux kernel >= 3.3? If so, this is the reason it doesn't work: https://github.com/ftao/python-ifcfg/bl ... t__.py#L37
Aaah... yea, I'm running 4.4.0-42-generic. Would it just be enough to change that line, or does it require a lot of changes to get it working on newer kernels?

Re: [Plugin] IfaceWatch - Watch for IP changes on interface

Posted: Sat Oct 15, 2016 2:43 pm
by bro
The test for kernel version is complete nonsense, as it has nothing to do with the output format of ifconfig. If you have the old version of ifconfig installed, changing the if test to pass should solve the problem.

Re: [Plugin] IfaceWatch - Watch for IP changes on interface

Posted: Sat Oct 15, 2016 4:46 pm
by Sphinxes
Hmm ok. The ouput of ifconfig --version give me the following, so it seems like it's a pretty old version. Everything should be updated to the latest versions, but maybe ifconfig is still running an old one :)
net-tools 1.60
ifconfig 1.42 (2001-04-13)