From a76ca0c0544c7705254159060d23dc0bc265db9c Mon Sep 17 00:00:00 2001 From: James Blair Date: Wed, 8 Jan 2020 15:23:46 +1300 Subject: [PATCH] Added powershell to eject sd. --- readme.org | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/readme.org b/readme.org index dcda3db..4bdb043 100644 --- a/readme.org +++ b/readme.org @@ -139,12 +139,21 @@ raspberry pis. #+NAME: Copy in post-install script #+begin_src shell :results output code verbatim replace :wrap example echo Copying in post-install.txt - cp post-install.txt /installer/raspberrypi-ua-netinst/config/ + cp post-install.txt installer/raspberrypi-ua-netinst/config/ echo Display wordcount of file after copy to validate wc installer/raspberrypi-ua-netinst/config/post-install.txt #+end_src + #+RESULTS: Copy in post-install script + #+begin_example + Copying in post-install.txt + Display wordcount of file after copy to validate + 7 31 212 installer/raspberrypi-ua-netinst/config/post-install.txt + #+end_example + + + * Step 2 - Copy the install media to sd card @@ -225,6 +234,11 @@ raspberry pis. echo Copy the contents of installer to sd cp -r installer/* /mnt/d/ + + echo Eject the sd card ready for use + powershell.exe -nologo + (new-object -comobject shell.application).namepsace(17).parsename("E:").invokeverb("eject") + exit #+end_src