summaryrefslogtreecommitdiff
path: root/test/disable-network
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-20 16:36:10 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-07-20 16:36:10 +0200
commit12077f58cb4b55eb24fde45bd337fb0a85303ed5 (patch)
tree14b238504e49fa3ba6767bf183adc6f2e42f38fd /test/disable-network
parent49c3cd3a8bb28f0d95e49fa522b20ff1ea331390 (diff)
downloadconnman-12077f58cb4b55eb24fde45bd337fb0a85303ed5.tar.gz
connman-12077f58cb4b55eb24fde45bd337fb0a85303ed5.tar.bz2
connman-12077f58cb4b55eb24fde45bd337fb0a85303ed5.zip
Remove test scripts for deprecated interfaces
Diffstat (limited to 'test/disable-network')
-rwxr-xr-xtest/disable-network31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/disable-network b/test/disable-network
deleted file mode 100755
index 0f261549..00000000
--- a/test/disable-network
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/python
-
-import dbus
-
-bus = dbus.SystemBus()
-
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
- "org.moblin.connman.Manager")
-
-properties = manager.GetProperties()
-
-for path in properties["Devices"]:
- device = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Device")
-
- properties = device.GetProperties()
-
- if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
- continue;
-
- print "[ %s ]" % (path)
-
- for path in properties["Networks"]:
- network = dbus.Interface(bus.get_object("org.moblin.connman", path),
- "org.moblin.connman.Network")
-
- properties = network.GetProperties()
-
- if (properties["Connected"] == dbus.Boolean(1)):
- print "Disconnecting %s" % (path)
- network.Disconnect()