| commit | 06a5bddf6c4bd373265dc5acffc8ed0e4555ae3b | [log] [tgz] |
|---|---|---|
| author | Matt Spinler <spinler@us.ibm.com> | Mon Nov 26 14:50:48 2018 -0600 |
| committer | Matt Spinler <spinler@us.ibm.com> | Mon Nov 26 15:34:19 2018 -0600 |
| tree | 78c1eea3f2005e7fa9e36f7931bf34b09ac2dcdd | |
| parent | 963c65f3e7636a8f402eb7c940ab37e5eb903e92 [diff] |
button-handler: Add reset button actions
Creates a signal handler for the 'Released' signal.
This will reboot the host if it is powered on. If the
system is off, it won't do anything.
As with the other buttons, it only installs the watch if
the button object exists.
Tested: Used the 'simPress' method on the reset object
to trigger the signal.
Change-Id: I4102cd8c260d07afb018b2c186e78a768e642a18
Signed-off-by: Matt Spinler <spinler@us.ibm.com>