Browse Source

On restore install anything that needs to be

Bob Mottram 9 years ago
parent
commit
42e9c7f6b3
2 changed files with 8 additions and 0 deletions
  1. 4
    0
      src/freedombone-restore-local
  2. 4
    0
      src/freedombone-restore-remote

+ 4
- 0
src/freedombone-restore-local View File

237
             rm -rf /root/tempconfig
237
             rm -rf /root/tempconfig
238
             exit 5294
238
             exit 5294
239
         fi
239
         fi
240
+        if [ -f $CONFIG_FILE ]; then
241
+            # install according to the config file
242
+            freedombone -c $CONFIG_FILE
243
+        fi
240
         cp -f /root/tempconfig/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE
244
         cp -f /root/tempconfig/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE
241
         if [ ! "$?" = "0" ]; then
245
         if [ ! "$?" = "0" ]; then
242
             unmount_drive
246
             unmount_drive

+ 4
- 0
src/freedombone-restore-remote View File

146
         rm -rf /root/tempconfig
146
         rm -rf /root/tempconfig
147
         exit 5372
147
         exit 5372
148
     fi
148
     fi
149
+    if [ -f $CONFIG_FILE ]; then
150
+        # install according to the config file
151
+        freedombone -c $CONFIG_FILE
152
+    fi
149
     cp -f /root/tempconfig/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE
153
     cp -f /root/tempconfig/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE
150
     if [ ! "$?" = "0" ]; then
154
     if [ ! "$?" = "0" ]; then
151
         unmount_drive
155
         unmount_drive