X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/7e6f1336f26e8c36a1768ae1f7f076a30030a8a8..ebefc1e21d71c4b53e27e142cd199f3ec600da9c:/widgets/net.lua?ds=sidebyside 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