mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
test: add connect-network script
This commit is contained in:
parent
38757e2fed
commit
4cf423b771
14
test/connect-network
Executable file
14
test/connect-network
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
import dbus
|
||||||
|
|
||||||
|
|
||||||
|
if (len(sys.argv) != 2):
|
||||||
|
print("Usage: %s <network>" % (sys.argv[0]))
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
bus = dbus.SystemBus()
|
||||||
|
network = dbus.Interface(bus.get_object("net.connman.iwd", sys.argv[1]),
|
||||||
|
"net.connman.iwd.Network")
|
||||||
|
network.Connect()
|
Loading…
Reference in New Issue
Block a user