crostestutils: Make recover_duts reboot via powerd.

Update the recover_duts check_ethernet hook to first make a
RequestRestart D-Bus call to powerd before calling "reboot"
directly. The former makes it easier to see why we're
rebooting (since powerd logs the reason to its log).

TEST=ran the subshell command with and without powerd and
     checked that the system reboots in both cases

Change-Id: I9a83cda6ced34690f1ecffa3e1d91678b33cd905
Commit-Ready: Dan Erat <>
Tested-by: Dan Erat <>
Reviewed-by: Grant Grundler <>
Reviewed-by: Todd Broch <>
1 file changed