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 <shawnn@chromium.org>
Reviewed-by: Derek Basehore <dbasehore@chromium.org>
Commit-Queue: Shawn Nematbakhsh <shawnn@chromium.org>
1 file changed