CHERRY-PICK: Lulu: Move board_charge_battery to battery_cut_off.sh

Per OEM's request, we will need the battery capacity check in factory
but not in RMA center. So, we move the board_charge_battery from
board_factory_reset.sh to battery_cut_off.sh. In that case, we can
use battery_cut_off as wipe_option in normal factory process and use
rma_battery_cut_off as wipe_option for making RMA shim.

BUG=chrome-os-partner:40510
TEST=Factory wipe and check the different wipe option behavior

Original-Change-Id: I8967b937160a1791ba69618010f4ee106732d62e
Change-Id: I8b5d567f5ccad560add36d898e242a3d752a9343
Reviewed-on: https://chromium-review.googlesource.com/287050
Reviewed-by: Bowgo Tsai <bowgotsai@chromium.org>
Commit-Queue: Michael H Yang <michael.h.yang@intel.com>
Tested-by: Michael H Yang <michael.h.yang@intel.com>
diff --git a/overlay-lulu/chromeos-base/chromeos-bsp-lulu/chromeos-bsp-lulu-0.0.1-r12.ebuild b/overlay-lulu/chromeos-base/chromeos-bsp-lulu/chromeos-bsp-lulu-0.0.1-r13.ebuild
similarity index 100%
rename from overlay-lulu/chromeos-base/chromeos-bsp-lulu/chromeos-bsp-lulu-0.0.1-r12.ebuild
rename to overlay-lulu/chromeos-base/chromeos-bsp-lulu/chromeos-bsp-lulu-0.0.1-r13.ebuild
diff --git a/overlay-lulu/chromeos-base/chromeos-bsp-lulu/files/sbin/battery_cut_off.sh b/overlay-lulu/chromeos-base/chromeos-bsp-lulu/files/sbin/battery_cut_off.sh
index 472ef66..eaaacc4 100755
--- a/overlay-lulu/chromeos-base/chromeos-bsp-lulu/files/sbin/battery_cut_off.sh
+++ b/overlay-lulu/chromeos-base/chromeos-bsp-lulu/files/sbin/battery_cut_off.sh
@@ -9,6 +9,8 @@
 
 DISPLAY_MESSAGE="/usr/sbin/display_wipe_message.sh"
 
+/usr/sbin/board_charge_battery.sh
+
 modprobe i2c_dev
 if (ectool battery | grep -q AC_PRESENT); then
   "${DISPLAY_MESSAGE}" "remove_ac"
diff --git a/overlay-lulu/chromeos-base/chromeos-bsp-lulu/files/sbin/board_factory_reset.sh b/overlay-lulu/chromeos-base/chromeos-bsp-lulu/files/sbin/board_factory_reset.sh
index 39c98e2..8ca3176 100644
--- a/overlay-lulu/chromeos-base/chromeos-bsp-lulu/files/sbin/board_factory_reset.sh
+++ b/overlay-lulu/chromeos-base/chromeos-bsp-lulu/files/sbin/board_factory_reset.sh
@@ -13,8 +13,6 @@
 sync
 sleep 3
 
-/usr/sbin/board_charge_battery.sh
-
 /usr/sbin/battery_cut_off.sh
 
 # Battery cut-off is failed if it returns with 1.