From 1fba472bf67812e93ef6d391e6c83f786aa81cf9 Mon Sep 17 00:00:00 2001
From: Florin Sarbu <florin@resin.io>
Date: Tue, 9 Oct 2018 09:36:48 +0200
Subject: [PATCH] nanopi-neo-air.coffee: Update instructions

The Nanopi Neo Air has an eMMC so we update barys and the user
provisioning instructions to match this fact.

Signed-off-by: Florin Sarbu <florin@resin.io>
---
 nanopi-neo-air.coffee | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/nanopi-neo-air.coffee b/nanopi-neo-air.coffee
index 12e0152..ab81fa0 100644
--- a/nanopi-neo-air.coffee
+++ b/nanopi-neo-air.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: 'nanopi-neo-air'
@@ -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/nanopi-neo-air/nodejs/getting-started/#adding-your-first-device'
 		osx: 'https://docs.resin.io/nanopi-neo-air/nodejs/getting-started/#adding-your-first-device'
@@ -20,10 +35,10 @@ module.exports =
 
 	yocto:
 		machine: 'nanopi-neo-air'
-		image: 'resin-image'
+		image: 'resin-image-flasher'
 		fstype: 'resinos-img'
 		version: 'yocto-sumo'
-		deployArtifact: 'resin-image-nanopi-neo-air.resinos-img'
+		deployArtifact: 'resin-image-flasher-nanopi-neo-air.resinos-img'
 		compressed: true
 
 	configuration: