projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed776f9
)
Show the connected value for each network
author
Marcel Holtmann
<marcel@holtmann.org>
Thu, 7 Aug 2008 02:10:12 +0000
(
04:10
+0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 7 Aug 2008 02:10:12 +0000
(
04:10
+0200)
test/list-networks
patch
|
blob
|
history
diff --git
a/test/list-networks
b/test/list-networks
index 72a9ad18ed3145753697396e7fee0c4747eb48cd..d3fa34d982ba093aa20af4b6fc9b5561a0bb334c 100755
(executable)
--- 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"])