From: copycat-killer Date: Tue, 13 Sep 2016 19:58:19 +0000 (+0200) Subject: net: ip: revert to default path; wiki updated; #102 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/ad4066caed02d9da2f3ec74a4648b96d3a7c3fa2?ds=inline;hp=--cc net: ip: revert to default path; wiki updated; #102 --- ad4066caed02d9da2f3ec74a4648b96d3a7c3fa2 diff --git a/widgets/net.lua b/widgets/net.lua index 4dbacf5..1883168 100644 --- a/widgets/net.lua +++ b/widgets/net.lua @@ -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 diff --git a/wiki b/wiki index 450c0bb..4521f12 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 450c0bbf52d9ff9c3f13b634ff666dd352784498 +Subproject commit 4521f127d306b74538d7cde445796978aa1853cf