| Index: test/monitor
|
| diff --git a/test/monitor b/test/monitor
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..11d17b837828d2a8d71c9340ee0a1bc6b670d401
|
| --- /dev/null
|
| +++ b/test/monitor
|
| @@ -0,0 +1,19 @@
|
| +#!/usr/bin/python
|
| +
|
| +import gobject
|
| +import dbus
|
| +import dbus.mainloop.glib
|
| +
|
| +def event(pid, reason, value):
|
| + print "pid %s %s: %s" % (pid, reason, value)
|
| +
|
| +if __name__ == '__main__':
|
| + dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
|
| +
|
| + bus = dbus.SystemBus()
|
| +
|
| + bus.add_signal_receiver(event, bus_name="org.chromium.dhcpcd",
|
| + signal_name = "Event")
|
| +
|
| + mainloop = gobject.MainLoop()
|
| + mainloop.run()
|
|
|