diff options
Diffstat (limited to 'test/remove-provider')
-rwxr-xr-x | test/remove-provider | 19 |
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]) |