CHERRY-PICK:Banjo: use battery cutoff at-shutdown for factory wipe

Use 'ectool batterycutoff at-shutdown' to gracefully cutoff the
battery.

This CL also adds two more wiping options: shutdown and reboot.

BUG=chrome-os-partner:37772
TEST=emerge-banjo chromeos-bsp-banjo

Original:Change-Id: I5fb4ded0ba9115e2b5ec212972ffcdf85d6610b0
Signed-off-by: Jeremy P Lin <jeremy.p.lin@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/257184
Reviewed-by: Bowgo Tsai <bowgotsai@chromium.org>
(cherry picked from commit 28b6ed01bcb6875841f5fe4c93631aa316888318)

Change-Id: I70f2cff921915880c0b7c758c3dde4617f76a45d
Reviewed-on: https://chromium-review.googlesource.com/258620
Commit-Queue: Jeremy P Lin <jeremy.p.lin@intel.com>
Tested-by: Jeremy P Lin <jeremy.p.lin@intel.com>
Reviewed-by: Bowgo Tsai <bowgotsai@chromium.org>
12 files changed
tree: 2f1378130d6bfacba99a7524cf6ac66dcdbdca22
  1. baseboard-auron/
  2. baseboard-glados/
  3. baseboard-jecht/
  4. baseboard-strago/
  5. chipset-bdw/
  6. chipset-bsw/
  7. chipset-skl/
  8. helloworld/
  9. overlay-amd64-generic/
  10. overlay-amd64-host/
  11. overlay-anglar/
  12. overlay-arm-generic/
  13. overlay-arm64-generic/
  14. overlay-auron/
  15. overlay-banjo/
  16. overlay-beaglebone/
  17. overlay-butterfly/
  18. overlay-candy/
  19. overlay-cid/
  20. overlay-clapper/
  21. overlay-cranky/
  22. overlay-daisy/
  23. overlay-enguarde/
  24. overlay-expresso/
  25. overlay-falco/
  26. overlay-gizmo/
  27. overlay-glimmer/
  28. overlay-gnawty/
  29. overlay-guado/
  30. overlay-jecht/
  31. overlay-kip/
  32. overlay-leon/
  33. overlay-link/
  34. overlay-lulu/
  35. overlay-lumpy/
  36. overlay-mappy/
  37. overlay-mccloud/
  38. overlay-mipseb-n32-generic/
  39. overlay-mipseb-n64-generic/
  40. overlay-mipseb-o32-generic/
  41. overlay-mipsel-n32-generic/
  42. overlay-mipsel-n64-generic/
  43. overlay-mipsel-o32-generic/
  44. overlay-monroe/
  45. overlay-moose/
  46. overlay-nyan/
  47. overlay-oak/
  48. overlay-panther/
  49. overlay-parrot/
  50. overlay-parry/
  51. overlay-peach/
  52. overlay-peppy/
  53. overlay-ppcbe-32-generic/
  54. overlay-ppcbe-64-generic/
  55. overlay-ppcle-32-generic/
  56. overlay-ppcle-64-generic/
  57. overlay-puppy/
  58. overlay-quawks/
  59. overlay-rambi/
  60. overlay-raspberrypi/
  61. overlay-reptile/
  62. overlay-rikku/
  63. overlay-sama5d3/
  64. overlay-squawks/
  65. overlay-stout/
  66. overlay-strago/
  67. overlay-stumpy/
  68. overlay-swanky/
  69. overlay-tidus/
  70. overlay-tricky/
  71. overlay-variant-amd64-generic-embedded/
  72. overlay-variant-amd64-generic-freon/
  73. overlay-variant-amd64-generic-mobbuild/
  74. overlay-variant-arm-generic-freon/
  75. overlay-variant-auron-paine/
  76. overlay-variant-auron-yuna/
  77. overlay-variant-beaglebone-servo/
  78. overlay-variant-butterfly-freon/
  79. overlay-variant-candy-freon/
  80. overlay-variant-clapper-freon/
  81. overlay-variant-daisy-embedded/
  82. overlay-variant-daisy-freon/
  83. overlay-variant-daisy-spring/
  84. overlay-variant-enguarde-freon/
  85. overlay-variant-expresso-freon/
  86. overlay-variant-falco-freon/
  87. overlay-variant-glimmer-freon/
  88. overlay-variant-gnawty-freon/
  89. overlay-variant-kip-freon/
  90. overlay-variant-link-freon/
  91. overlay-variant-lumpy-freon/
  92. overlay-variant-mccloud-freon/
  93. overlay-variant-monroe-freon/
  94. overlay-variant-nyan-big/
  95. overlay-variant-nyan-freon/
  96. overlay-variant-panther-embedded/
  97. overlay-variant-panther-freon/
  98. overlay-variant-panther-goofy/
  99. overlay-variant-panther-moblab/
  100. overlay-variant-parrot-freon/
  101. overlay-variant-parrot-ivb/
  102. overlay-variant-parrot-ivb-freon/
  103. overlay-variant-peach-pi/
  104. overlay-variant-peach-pit/
  105. overlay-variant-peppy-freon/
  106. overlay-variant-quawks-freon/
  107. overlay-variant-rambi-freon/
  108. overlay-variant-squawks-freon/
  109. overlay-variant-stout-freon/
  110. overlay-variant-stumpy-freon/
  111. overlay-variant-stumpy-moblab/
  112. overlay-variant-swanky-freon/
  113. overlay-variant-tricky-freon/
  114. overlay-variant-winky-freon/
  115. overlay-variant-x86-alex-he/
  116. overlay-variant-x86-generic-embedded/
  117. overlay-variant-x86-zgb-he/
  118. overlay-variant-zako-freon/
  119. overlay-veyron/
  120. overlay-winky/
  121. overlay-wolf/
  122. overlay-x32-generic/
  123. overlay-x86-alex/
  124. overlay-x86-generic/
  125. overlay-x86-mario/
  126. overlay-x86-zgb/
  127. overlay-zako/
  128. project-app-shell/
  129. project-freon/
  130. project-mobbase/
  131. project-mobbuild/
  132. project-moblab/
  133. .gitignore
  134. inherit-review-settings-ok
  135. README
  136. WATCHLISTS