Merge branch 'master' of github.com:copycat-killer/lain into HEAD

This commit is contained in:
copycat-killer 2016-09-29 10:48:54 +02:00
commit 9e78c8d121
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ local function worker(args)
local net = { last_t = 0, last_r = 0, devices = {} }
function net.get_first_device()
local ws = helpers.read_pipe("/usr/sbin/ip link show | cut -d' ' -f2,9")
local ws = helpers.read_pipe("ip link show | cut -d' ' -f2,9")
ws = ws:match("%w+: UP") or ws:match("ppp%w+: UNKNOWN")
if ws then return { ws:match("(%w+):") }
else return {} end