From 5734f815db47e848c34bb84cd05293134652f635 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 7 Aug 2008 04:10:12 +0200 Subject: [PATCH] Show the connected value for each network --- test/list-networks | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/list-networks b/test/list-networks index 72a9ad1..d3fa34d 100755 --- a/test/list-networks +++ b/test/list-networks @@ -19,4 +19,8 @@ for path in elements: print "[ %s ]" % (path) if (properties["Type"] == "network"): - print " %s" % (properties["SSID"]) + if (properties["Connected"] == 1): + state = "*" + else: + state = " " + print " %s %s" % (state, properties["SSID"]) -- 2.7.4