Skip to content

Instantly share code, notes, and snippets.

# before, launch qemu-system-x86_64 stos-i386-pc.boot \
# -serial tcp:127.0.0.1:4445,server,nowait \
# -qmp tcp:127.0.0.1:4444,server,nowait \
# -nographic
import sys
sys.path.append("/home/gaby/source/qemu/scripts/qmp")
import qmp
import pexpect
import time
import dbus
def iwd_stations(obj):
for k, v in obj.items():
if 'net.connman.iwd.Station' in v:
yield k, v
system_bus = dbus.SystemBus()