summaryrefslogtreecommitdiff
path: root/test/remove-provider
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-12 14:07:22 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-23 12:58:50 +0200
commit6ed9559f6914a32fd90c17c097251f2bd5e01ef0 (patch)
treeb4b8ec3fa68cad42c624f7f6c33b6332f43d254b /test/remove-provider
parent4ba04eb6172f898402e0aa66f0dc8f564a12279f (diff)
downloadconnman-6ed9559f6914a32fd90c17c097251f2bd5e01ef0.tar.gz
connman-6ed9559f6914a32fd90c17c097251f2bd5e01ef0.tar.bz2
connman-6ed9559f6914a32fd90c17c097251f2bd5e01ef0.zip
test: Renamed old VPN scripts
Renamed connect-vpn to connect-provider and disconnect-vpn to remove-provider In order to not confuse the user, change the name of the old vpn connect/disconnect script. Now the name of the script reflects the name of the manager dbus api. The connect-provider will use the old ConnectProvider manager dbus interface instead of directly connecting to connman-vpnd.
Diffstat (limited to 'test/remove-provider')
-rwxr-xr-xtest/remove-provider19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/remove-provider b/test/remove-provider
new file mode 100755
index 00000000..39f8de77
--- /dev/null
+++ b/test/remove-provider
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+
+import sys
+import dbus
+
+if (len(sys.argv) < 2):
+ print "Usage: %s <VPN service path> " % (sys.argv[0])
+ sys.exit(1)
+
+bus = dbus.SystemBus()
+
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+ "net.connman.Manager")
+
+path = "" + sys.argv[1]
+
+print "remove path is %s" %(path)
+
+manager.RemoveProvider(sys.argv[1])