]> git.sur5r.net Git - i3/i3status/commit
Parse uevent file to detect network device type (#153)
authorCihangir Akturk <cakturk@gmail.com>
Mon, 22 Aug 2016 17:23:59 +0000 (20:23 +0300)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Mon, 22 Aug 2016 17:23:59 +0000 (10:23 -0700)
commit15de209cbaee6827f061e8d2788c9db232012c6b
treedf2388c145bb6fe0ee7433940570c048839fb6dc
parentef16acfca5f41fc841d7cc0ec8cca1d950157f6a
Parse uevent file to detect network device type (#153)

Currently i3status differentiates wireless and wired devices based
on the existence of wireless directory inside the device's sysfs
directory. This approach seems to cause 3g modems to be incorrectly
identified as the first ethernet device.

This commit solves this problem by using DEVTYPE variable from
uevent file.

Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
include/i3status.h
src/first_network_device.c