thermal.sh: log platform name and retry if it's empty

We're seeing some systems kicking off the thermal throttling script
even though they shouldn't, so log more info, and retry if the
platform isn't being picked up.

BUG=chrome-os-partner:17658
TEST=boot daisy, verify platform name is logged in /var/log/messages

Reviewed-on: https://gerrit.chromium.org/gerrit/51074
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Commit-Queue: Sonny Rao <sonnyrao@chromium.org>
(cherry picked from commit 36db2543f126001d3e62285a387bf11fe2c9f26b)

Change-Id: Ie5a80a19a7513222c2d27f9d20e1c07f6a708296
Reviewed-on: https://gerrit.chromium.org/gerrit/58410
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
1 file changed