From: copycat-killer Date: Thu, 29 Sep 2016 08:48:54 +0000 (+0200) Subject: Merge branch 'master' of github.com:copycat-killer/lain into HEAD X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/9e78c8d1219c7406d0cd8a3394fec4c4f27134e0?hp=366ba0c1b75a14e3740a4fe956dd5e0225a00fda Merge branch 'master' of github.com:copycat-killer/lain into HEAD --- 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