eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

connect-network (313B)


      1 #!/usr/bin/python3
      2 
      3 import sys
      4 import dbus
      5 
      6 
      7 if (len(sys.argv) != 2):
      8     print("Usage: %s <network>" % (sys.argv[0]))
      9     sys.exit(1)
     10 
     11 bus = dbus.SystemBus()
     12 network = dbus.Interface(bus.get_object("net.connman.iwd", sys.argv[1]),
     13                                     "net.connman.iwd.Network")
     14 network.Connect()