Browse Source

Test for failure

Bob Mottram 10 years ago
parent
commit
49ee34974b
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone-prep

+ 4
- 0
src/freedombone-prep View File

@@ -161,6 +161,10 @@ if [ -f /usr/bin/sudo ]; then
161 161
     SUDO='sudo'
162 162
 fi
163 163
 $SUDO ./setup_sdcard.sh --mmc $MICROSD_DRIVE --dtb beaglebone
164
+if [ ! "$?" = "0" ]; then
165
+    echo 'System did not install to the microSD'
166
+    exit 4378
167
+fi
164 168
 
165 169
 echo ''
166 170
 echo ''