From 4a7e4b14209272e710245b28dac0338983559347 Mon Sep 17 00:00:00 2001
From: Thodoris Greasidis <thgreasi@gmail.com>
Date: Mon, 9 Jul 2018 11:39:52 +0300
Subject: [PATCH] Include the eMMC flash & reboot to the Plus 2 instructions

See: https://forums.resin.io/t/orange-pi-plus-2e/3457/6

Signed-off-by: Thodoris Greasidis <thodoris@resin.io>
---
 orangepi-plus2.coffee | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/orangepi-plus2.coffee b/orangepi-plus2.coffee
index d977752..09ceee3 100644
--- a/orangepi-plus2.coffee
+++ b/orangepi-plus2.coffee
@@ -2,6 +2,12 @@
 deviceTypesCommon = require '@resin.io/device-types/common'
 { networkOptions, commonImg, instructions } = deviceTypesCommon
 
+postProvisioningInstructions = [
+	instructions.BOARD_SHUTDOWN
+	instructions.REMOVE_INSTALL_MEDIA
+	instructions.BOARD_REPOWER
+]
+
 module.exports =
 	version: 1
 	slug: 'orangepi-plus2'
@@ -9,7 +15,16 @@ module.exports =
 	arch: 'armv7hf'
 	state: 'experimental'
 
-	instructions: commonImg.instructions
+	stateInstructions:
+		postProvisioning: postProvisioningInstructions
+
+	instructions: [
+		instructions.ETCHER_SD
+		instructions.EJECT_SD
+		instructions.FLASHER_WARNING
+		instructions.CONNECT_AND_BOOT
+	].concat(postProvisioningInstructions)
+
 	gettingStartedLink:
 		windows: 'https://docs.resin.io/orangepi-plus2/nodejs/getting-started/#adding-your-first-device'
 		osx: 'https://docs.resin.io/orangepi-plus2/nodejs/getting-started/#adding-your-first-device'