aboutsummaryrefslogtreecommitdiff
path: root/wifi.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-14 17:25:23 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-09-14 17:25:23 +0200
commit2a5126f4f0c0a3e073becb98f49499363072643d (patch)
treecd9e79c76420d01c94544ce039a6a73eb667e4e5 /wifi.lua
parent4f3599db00b3a55a0ff6e52530bdad282e97f8f3 (diff)
downloadvicious-legacy-2a5126f4f0c0a3e073becb98f49499363072643d.tar.xz
General cleanup
Diffstat (limited to 'wifi.lua')
-rw-r--r--wifi.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/wifi.lua b/wifi.lua
index 966435f..063ce06 100644
--- a/wifi.lua
+++ b/wifi.lua
@@ -19,13 +19,12 @@ module("vicious.wifi")
-- {{{ Wireless widget type
local function worker(format, iface)
- -- Get data from iwconfig, on distributions where it is executable
- -- by users, and /sbin or /usr/sbin is in their path
+ -- Get data from iwconfig (where available)
local f = io.popen("iwconfig " .. iface)
local iw = f:read("*all")
f:close()
- -- Setup tables
+ -- Default values
local winfo = {
["{ssid}"] = "N/A",
["{mode}"] = "N/A",