@@ -20,7 +20,7 @@ if ! [ $(id -u) = 0 ]; then
20
20
# https://github.com/balena-io/balena-cli/blob/master/INSTALL.md#executable-installer
21
21
# If the downloaded and unzipped folder is in download ($HOME/Downloads/balena-cli) then :
22
22
export PATH=$PATH :$HOME /Downloads/balena-cli # Allows script environment to understand where Balena Etcher CLI is
23
-
23
+ if false ; then
24
24
echo " The fully configured source SD card should be plugged in to continue"
25
25
read -p " When ready, input version number : " NUM
26
26
dd status=progress if=/dev/sde of=$HOME /MovitImages/Movit-unshrunk$NUM .img
@@ -31,13 +31,13 @@ echo ""
31
31
read -p " Press enter when target SD card is inserted"
32
32
echo " Flashing new image on inserted SD card..."
33
33
balena local flash $HOME /MovitImages/Movit_V$NUM .img.gz -y --drive /dev/sde
34
-
34
+ fi
35
35
echo -e " \nConfiguring wpa_supplicant for the first boot with the flashed SD card"
36
36
read -p " Enter SSID: " SSID
37
37
read -p " Enter password: " PSK
38
38
39
39
read -p " Remove and reinsert the card and press enter"
40
- cd /media/charles/boot/ && cat << EOF > wpa_supplicant.conf
40
+ cat << EOF > /media/charles/boot/ wpa_supplicant.conf
41
41
country=CA
42
42
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
43
43
update_config=1
@@ -47,5 +47,10 @@ network={
47
47
psk="$PSK " #Remplacer MOT_DE_PASSE par le mot de passe de celui-ci
48
48
id_str="AP1"
49
49
}
50
- EOF && cat wpa_supplicant.conf
50
+ EOF
51
+
52
+ echo -e " \n#####################################\nWritten file :\n#####################################"
53
+ cat /media/charles/boot/wpa_supplicant.conf
54
+ echo -e " #####################################\nExiting..."
55
+
51
56
exit 0
0 commit comments