| 
				
			 | 
			
			
				@@ -119,22 +119,27 @@ function restore_configuration { 
			 | 
		
	
		
			
			| 
				119
			 | 
			
				119
			 | 
			
			
				         temp_restore_dir=/root/tempconfig 
			 | 
		
	
		
			
			| 
				120
			 | 
			
				120
			 | 
			
			
				         restore_directory_from_friend $temp_restore_dir config 
			 | 
		
	
		
			
			| 
				121
			 | 
			
				121
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				122
			 | 
			
				
			 | 
			
			
				-        cp -f $temp_restore_dir/root/${PROJECT_NAME}.cfg $CONFIGURATION_FILE 
			 | 
		
	
		
			
			| 
				123
			 | 
			
				
			 | 
			
			
				-        if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				124
			 | 
			
				
			 | 
			
			
				-            unmount_drive 
			 | 
		
	
		
			
			| 
				125
			 | 
			
				
			 | 
			
			
				-            rm -rf $temp_restore_dir 
			 | 
		
	
		
			
			| 
				126
			 | 
			
				
			 | 
			
			
				-            exit 5372 
			 | 
		
	
		
			
			| 
				
			 | 
			
				122
			 | 
			
			
				+        if [ -f $temp_restore_dir/root/${PROJECT_NAME}.cfg ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				123
			 | 
			
			
				+            cp -f $temp_restore_dir/root/${PROJECT_NAME}.cfg $CONFIGURATION_FILE 
			 | 
		
	
		
			
			| 
				
			 | 
			
				124
			 | 
			
			
				+            if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				125
			 | 
			
			
				+                unmount_drive 
			 | 
		
	
		
			
			| 
				
			 | 
			
				126
			 | 
			
			
				+                rm -rf $temp_restore_dir 
			 | 
		
	
		
			
			| 
				
			 | 
			
				127
			 | 
			
			
				+                exit 5372 
			 | 
		
	
		
			
			| 
				
			 | 
			
				128
			 | 
			
			
				+            fi 
			 | 
		
	
		
			
			| 
				127
			 | 
			
				129
			 | 
			
			
				         fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				130
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				128
			 | 
			
				131
			 | 
			
			
				         if [ -f $CONFIGURATION_FILE ]; then 
			 | 
		
	
		
			
			| 
				129
			 | 
			
				132
			 | 
			
			
				             # install according to the config file 
			 | 
		
	
		
			
			| 
				130
			 | 
			
				133
			 | 
			
			
				             freedombone -c $CONFIGURATION_FILE 
			 | 
		
	
		
			
			| 
				131
			 | 
			
				134
			 | 
			
			
				         fi 
			 | 
		
	
		
			
			| 
				132
			 | 
			
				135
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				133
			 | 
			
				
			 | 
			
			
				-        cp -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE 
			 | 
		
	
		
			
			| 
				134
			 | 
			
				
			 | 
			
			
				-        if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				135
			 | 
			
				
			 | 
			
			
				-            unmount_drive 
			 | 
		
	
		
			
			| 
				136
			 | 
			
				
			 | 
			
			
				-            rm -rf $temp_restore_dir 
			 | 
		
	
		
			
			| 
				137
			 | 
			
				
			 | 
			
			
				-            exit 7252 
			 | 
		
	
		
			
			| 
				
			 | 
			
				136
			 | 
			
			
				+        if [ -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				137
			 | 
			
			
				+            cp -f $temp_restore_dir/root/${PROJECT_NAME}-completed.txt $COMPLETION_FILE 
			 | 
		
	
		
			
			| 
				
			 | 
			
				138
			 | 
			
			
				+            if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				139
			 | 
			
			
				+                unmount_drive 
			 | 
		
	
		
			
			| 
				
			 | 
			
				140
			 | 
			
			
				+                rm -rf $temp_restore_dir 
			 | 
		
	
		
			
			| 
				
			 | 
			
				141
			 | 
			
			
				+                exit 7252 
			 | 
		
	
		
			
			| 
				
			 | 
			
				142
			 | 
			
			
				+            fi 
			 | 
		
	
		
			
			| 
				138
			 | 
			
				143
			 | 
			
			
				         fi 
			 | 
		
	
		
			
			| 
				139
			 | 
			
				144
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				140
			 | 
			
				145
			 | 
			
			
				         if [ -f ${temp_restore_dir}${BACKUP_EXTRA_DIRECTORIES} ]; then 
			 |