Explorar el Código

Update before continuing install

Bob Mottram hace 9 años
padre
commit
51b01f6fce
Se han modificado 1 ficheros con 11 adiciones y 5 borrados
  1. 11
    5
      src/freedombone-image-customise

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

258
     echo -n "    echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
258
     echo -n "    echo \"${MY_USERNAME}:" >> $rootdir/root/.bashrc
259
     echo '$(printf `cat ~/login.txt`)"|chpasswd' >> $rootdir/root/.bashrc
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
     echo '    if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
272
     echo '    if [ "$?" = "0" ]; then' >> $rootdir/root/.bashrc
267
     echo "        if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
273
     echo "        if [ -f ~/${PROJECT_NAME}-completed.txt ]; then" >> $rootdir/root/.bashrc
268
     # Remove the initial setup files
274
     # Remove the initial setup files