inform_shopfloor: remove waiting for interface ready

Previously we will wait for interface ready before posting. However,
different board may have different interface name, e.g. eth0, wan0, making
it difficult to check the correct one. This check can be removed. The
posting can be retried to avoid the problem.

BUG=None
TEST=None

Change-Id: I2606f14cb112c760c1857a1e6f288985616bb0e0
Reviewed-on: https://chromium-review.googlesource.com/344473
Commit-Ready: Shun-Hsing Ou <shunhsingou@chromium.org>
Tested-by: Shun-Hsing Ou <shunhsingou@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>
diff --git a/battery_cutoff/inform_shopfloor.sh b/battery_cutoff/inform_shopfloor.sh
index 023677e..0f0409a 100755
--- a/battery_cutoff/inform_shopfloor.sh
+++ b/battery_cutoff/inform_shopfloor.sh
@@ -62,14 +62,6 @@
   done
 }
 
-wait_for_ethernet() {
-  # Make sure we already connect to ethernet.
-  echo "Waiting for ethernet ready..." >"${TTY}"
-  until ifconfig eth0 | egrep 'inet [addr:]*([0-9]+\.){3}[0-9]+'; do
-    sleep 0.5
-  done
-}
-
 main() {
   if [ $# -ne 2 ]; then
     usage_help
@@ -82,7 +74,6 @@
 
   case "$2" in
     factory_reset|factory_wipe )
-      wait_for_ethernet
       if ! "${GENERATE_FINALIZE_REQUEST}" "$2" >"${POST_FILE}"; then
         local err=""
         err="$(cat ${POST_FILE})"