| 
				
			 | 
			
			
				@@ -1217,31 +1217,6 @@ function restore_voip { 
			 | 
		
	
		
			
			| 
				1217
			 | 
			
				1217
			 | 
			
			
				     fi 
			 | 
		
	
		
			
			| 
				1218
			 | 
			
				1218
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				1219
			 | 
			
				1219
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				1220
			 | 
			
				
			 | 
			
			
				-function restore_tox { 
			 | 
		
	
		
			
			| 
				1221
			 | 
			
				
			 | 
			
			
				-    if [[ $RESTORE_APP != 'all' ]]; then 
			 | 
		
	
		
			
			| 
				1222
			 | 
			
				
			 | 
			
			
				-        if [[ $RESTORE_APP != 'tox' ]]; then 
			 | 
		
	
		
			
			| 
				1223
			 | 
			
				
			 | 
			
			
				-            return 
			 | 
		
	
		
			
			| 
				1224
			 | 
			
				
			 | 
			
			
				-        fi 
			 | 
		
	
		
			
			| 
				1225
			 | 
			
				
			 | 
			
			
				-    fi 
			 | 
		
	
		
			
			| 
				1226
			 | 
			
				
			 | 
			
			
				-    if [ -d $USB_MOUNT/backup/tox ]; then 
			 | 
		
	
		
			
			| 
				1227
			 | 
			
				
			 | 
			
			
				-        echo $"Restoring Tox node settings" 
			 | 
		
	
		
			
			| 
				1228
			 | 
			
				
			 | 
			
			
				-        restore_directory_from_usb / tox 
			 | 
		
	
		
			
			| 
				1229
			 | 
			
				
			 | 
			
			
				-        if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				1230
			 | 
			
				
			 | 
			
			
				-            set_user_permissions 
			 | 
		
	
		
			
			| 
				1231
			 | 
			
				
			 | 
			
			
				-            backup_unmount_drive 
			 | 
		
	
		
			
			| 
				1232
			 | 
			
				
			 | 
			
			
				-            exit 6393 
			 | 
		
	
		
			
			| 
				1233
			 | 
			
				
			 | 
			
			
				-        fi 
			 | 
		
	
		
			
			| 
				1234
			 | 
			
				
			 | 
			
			
				-        cp /var/lib/tox-bootstrapd/tox-bootstrapd.conf /etc/tox-bootstrapd.conf 
			 | 
		
	
		
			
			| 
				1235
			 | 
			
				
			 | 
			
			
				-        systemctl restart tox-bootstrapd.service 
			 | 
		
	
		
			
			| 
				1236
			 | 
			
				
			 | 
			
			
				-        if [ ! "$?" = "0" ]; then 
			 | 
		
	
		
			
			| 
				1237
			 | 
			
				
			 | 
			
			
				-            systemctl status tox-bootstrapd.service 
			 | 
		
	
		
			
			| 
				1238
			 | 
			
				
			 | 
			
			
				-            set_user_permissions 
			 | 
		
	
		
			
			| 
				1239
			 | 
			
				
			 | 
			
			
				-            backup_unmount_drive 
			 | 
		
	
		
			
			| 
				1240
			 | 
			
				
			 | 
			
			
				-            exit 59369 
			 | 
		
	
		
			
			| 
				1241
			 | 
			
				
			 | 
			
			
				-        fi 
			 | 
		
	
		
			
			| 
				1242
			 | 
			
				
			 | 
			
			
				-    fi 
			 | 
		
	
		
			
			| 
				1243
			 | 
			
				
			 | 
			
			
				-} 
			 | 
		
	
		
			
			| 
				1244
			 | 
			
				
			 | 
			
			
				- 
			 | 
		
	
		
			
			| 
				1245
			 | 
			
				1220
			 | 
			
			
				 function get_restore_app { 
			 | 
		
	
		
			
			| 
				1246
			 | 
			
				1221
			 | 
			
			
				     if [ ${1} ]; then 
			 | 
		
	
		
			
			| 
				1247
			 | 
			
				1222
			 | 
			
			
				         if [ ! -d /home/${1} ]; then 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -1313,7 +1288,6 @@ restore_cjdns 
			 | 
		
	
		
			
			| 
				1313
			 | 
			
				1288
			 | 
			
			
				 restore_email 
			 | 
		
	
		
			
			| 
				1314
			 | 
			
				1289
			 | 
			
			
				 restore_dlna 
			 | 
		
	
		
			
			| 
				1315
			 | 
			
				1290
			 | 
			
			
				 restore_voip 
			 | 
		
	
		
			
			| 
				1316
			 | 
			
				
			 | 
			
			
				-restore_tox 
			 | 
		
	
		
			
			| 
				1317
			 | 
			
				1291
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				1318
			 | 
			
				1292
			 | 
			
			
				 restore_apps 
			 | 
		
	
		
			
			| 
				1319
			 | 
			
				1293
			 | 
			
			
				 set_user_permissions 
			 |