]> git.ipfire.org Git - people/stevee/network.git/commit - src/functions/functions.device
device: Rewrite batman-adv-port detection
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Sep 2014 11:15:59 +0000 (13:15 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Sep 2014 11:15:59 +0000 (13:15 +0200)
commit7b192cf470a477d8fa1af7d21c0243e49f958d80
tree747746098eaa7306aa192bb3b0d7c6283590191c
parent7c9afeb4da6117f16534d5b0cd512dac0e74c1b1
device: Rewrite batman-adv-port detection

When the batman-adv module is loaded, the batman_adv
subdirectory can be found in the sys tree of every network
device, so this check returned positive for every device.

The function has been rewritten to read the content of the
status file which will return the correct result.
src/functions/functions.device