mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-03-03 22:30:54 +01:00
test: Add disconnect-network script
This commit is contained in:
parent
ecede21c1e
commit
a4af2e2947
14
test/disconnect-network
Executable file
14
test/disconnect-network
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import dbus
|
||||||
|
|
||||||
|
|
||||||
|
if (len(sys.argv) != 2):
|
||||||
|
print("Usage: %s <device>" % (sys.argv[0]))
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
bus = dbus.SystemBus()
|
||||||
|
device = dbus.Interface(bus.get_object("net.connman.iwd", sys.argv[1]),
|
||||||
|
"net.connman.iwd.Device")
|
||||||
|
device.Disconnect()
|
Loading…
x
Reference in New Issue
Block a user