init: powerd: Fix race condition with device disconnect

If a device becomes disconnected after the "-e" check but before the
chown command, we will return with fail status and powerd will not be
started. Fix this by ensuring chown failure will not abort our script.

BUG=chrome-os-partner:28827
TEST=Manual. Ensure powerd starts on boot.

Change-Id: I2ec4d1a22461661f2601a1338337e97a3c45e7e4
Reviewed-on: https://chromium-review.googlesource.com/203747
Tested-by: Shawn Nematbakhsh <[email protected]>
Reviewed-by: Derek Basehore <[email protected]>
Commit-Queue: Shawn Nematbakhsh <[email protected]>
1 file changed