summaryrefslogtreecommitdiffstats
path: root/lib/network/monitor.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/monitor.pm')
-rw-r--r--lib/network/monitor.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/network/monitor.pm b/lib/network/monitor.pm
index 1754d89..84b944c 100644
--- a/lib/network/monitor.pm
+++ b/lib/network/monitor.pm
@@ -28,6 +28,7 @@ sub list_wireless {
if (!$has_roaming && !$>) {
$results = `/usr/sbin/wpa_cli scan_results 2>/dev/null`;
$list = `/usr/sbin/wpa_cli list_networks 2>/dev/null`;
+ $_ =~ s/^Selected interface (.*)\n//g foreach $results, $list;
}
if ($results && $list) {
#- bssid / frequency / signal level / flags / ssid