Ver código fonte

Update before continuing install

Bob Mottram 9 anos atrás
pai
commit
51b01f6fce
1 arquivos alterados com 11 adições e 5 exclusões
  1. 11
    5
      src/freedombone-image-customise

+ 11
- 5
src/freedombone-image-customise Ver arquivo

@@ -258,11 +258,17 @@ EOF
258 258
     echo -n "    echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
259 259
     echo '$(printf `cat ~/login.txt`)"|chpasswd' >> $rootdir/root/.bashrc
260 260
 
261
-	if [[ $MINIMAL_INSTALL == "no" ]]; then
262
-		echo "    ${PROJECT_NAME} menuconfigfull" >> $rootdir/root/.bashrc
263
-	else
264
-		echo "    ${PROJECT_NAME} menuconfig" >> $rootdir/root/.bashrc
265
-	fi
261
+    # update before continuing
262
+    echo "    cd /root/${PROJECT_NAME}" >> $rootdir/root/.bashrc
263
+    echo "    git stash" >> $rootdir/root/.bashrc
264
+    echo "    git pull" >> $rootdir/root/.bashrc
265
+    echo "    make install" >> $rootdir/root/.bashrc
266
+
267
+    if [[ $MINIMAL_INSTALL == "no" ]]; then
268
+        echo "    ${PROJECT_NAME} menuconfigfull" >> $rootdir/root/.bashrc
269
+    else
270
+        echo "    ${PROJECT_NAME} menuconfig" >> $rootdir/root/.bashrc
271
+    fi
266 272
     echo '    if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
267 273
     echo "        if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
268 274
     # Remove the initial setup files