net: ip: revert to default path; wiki updated; #102

This commit is contained in:
copycat-killer 2016-09-13 21:58:19 +02:00
parent 7e6f1336f2
commit ad4066caed
2 changed files with 2 additions and 2 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

2
wiki

@ -1 +1 @@
Subproject commit 450c0bbf52d9ff9c3f13b634ff666dd352784498
Subproject commit 4521f127d306b74538d7cde445796978aa1853cf