| 
				
			 | 
			
			
				@@ -99,7 +99,7 @@ function show_help { 
			 | 
		
	
		
			
			| 
				99
			 | 
			
				99
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				100
			 | 
			
				100
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				101
			 | 
			
				101
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				102
			 | 
			
				
			 | 
			
			
				-function mesh_babel { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				102
			 | 
			
			
				+function install_babel { 
			 | 
		
	
		
			
			| 
				103
			 | 
			
				103
			 | 
			
			
				 	$CHROOT_PREFIX apt-get -y install babeld 
			 | 
		
	
		
			
			| 
				104
			 | 
			
				104
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				105
			 | 
			
				105
			 | 
			
			
				 	babel_script=${rootdir}/var/lib/babel 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -180,7 +180,7 @@ function mesh_babel { 
			 | 
		
	
		
			
			| 
				180
			 | 
			
				180
			 | 
			
			
				 	$CHROOT_PREFIX systemctl enable babel 
			 | 
		
	
		
			
			| 
				181
			 | 
			
				181
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				182
			 | 
			
				182
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				183
			 | 
			
				
			 | 
			
			
				-function mesh_babel_remove { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				183
			 | 
			
			
				+function install_babel_remove { 
			 | 
		
	
		
			
			| 
				184
			 | 
			
				184
			 | 
			
			
				 	$CHROOT_PREFIX systemctl stop babel 
			 | 
		
	
		
			
			| 
				185
			 | 
			
				185
			 | 
			
			
				 	$CHROOT_PREFIX apt-get -y remove --purge babeld 
			 | 
		
	
		
			
			| 
				186
			 | 
			
				186
			 | 
			
			
				 	rm ${rootdir}/var/lib/babel 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -227,7 +227,7 @@ function mesh_avahi { 
			 | 
		
	
		
			
			| 
				227
			 | 
			
				227
			 | 
			
			
				 	chmod +x $rootdir/usr/bin/$WATCHDOG_SCRIPT_NAME 
			 | 
		
	
		
			
			| 
				228
			 | 
			
				228
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				229
			 | 
			
				229
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				230
			 | 
			
				
			 | 
			
			
				-function mesh_babel_client { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				230
			 | 
			
			
				+function install_babel_client { 
			 | 
		
	
		
			
			| 
				231
			 | 
			
				231
			 | 
			
			
				 	# TODO to be fixed 
			 | 
		
	
		
			
			| 
				232
			 | 
			
				232
			 | 
			
			
				 	if [ -f /usr/local/bin/${PROJECT_NAME} ]; then 
			 | 
		
	
		
			
			| 
				233
			 | 
			
				233
			 | 
			
			
				 		TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}') 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -333,13 +333,13 @@ function mesh_babel_client { 
			 | 
		
	
		
			
			| 
				333
			 | 
			
				333
			 | 
			
			
				 	sudo mv $babel_script ${rootdir}/usr/bin/babel 
			 | 
		
	
		
			
			| 
				334
			 | 
			
				334
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				335
			 | 
			
				335
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				336
			 | 
			
				
			 | 
			
			
				-function mesh_batman_remove { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				336
			 | 
			
			
				+function install_batman_remove { 
			 | 
		
	
		
			
			| 
				337
			 | 
			
				337
			 | 
			
			
				 	systemctl stop batman 
			 | 
		
	
		
			
			| 
				338
			 | 
			
				338
			 | 
			
			
				 	rm $rootdir/var/lib/batman 
			 | 
		
	
		
			
			| 
				339
			 | 
			
				339
			 | 
			
			
				 	rm $rootdir/etc/systemd/system/batman.service 
			 | 
		
	
		
			
			| 
				340
			 | 
			
				340
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				341
			 | 
			
				341
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				342
			 | 
			
				
			 | 
			
			
				-function mesh_batman { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				342
			 | 
			
			
				+function install_batman { 
			 | 
		
	
		
			
			| 
				343
			 | 
			
				343
			 | 
			
			
				 	$CHROOT_PREFIX apt-get -y install iproute bridge-utils libnetfilter-conntrack3 batctl 
			 | 
		
	
		
			
			| 
				344
			 | 
			
				344
			 | 
			
			
				 	$CHROOT_PREFIX apt-get -y install python-dev libevent-dev ebtables python-pip git 
			 | 
		
	
		
			
			| 
				345
			 | 
			
				345
			 | 
			
			
				 	$CHROOT_PREFIX apt-get -y install wireless-tools rfkill 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -799,7 +799,7 @@ function mesh_zeronet { 
			 | 
		
	
		
			
			| 
				799
			 | 
			
				799
			 | 
			
			
				 	$CHROOT_PREFIX systemctl enable zeronet.service 
			 | 
		
	
		
			
			| 
				800
			 | 
			
				800
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				801
			 | 
			
				801
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				802
			 | 
			
				
			 | 
			
			
				-function mesh_batman_client { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				802
			 | 
			
			
				+function install_batman_client { 
			 | 
		
	
		
			
			| 
				803
			 | 
			
				803
			 | 
			
			
				 	if [ -f /usr/local/bin/${PROJECT_NAME} ]; then 
			 | 
		
	
		
			
			| 
				804
			 | 
			
				804
			 | 
			
			
				 		TOXIC_FILE=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}') 
			 | 
		
	
		
			
			| 
				805
			 | 
			
				805
			 | 
			
			
				 	else 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -1101,13 +1101,13 @@ done 
			 | 
		
	
		
			
			| 
				1101
			 | 
			
				1101
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				1102
			 | 
			
				1102
			 | 
			
			
				 if [[ $FN == 'babel' ]]; then 
			 | 
		
	
		
			
			| 
				1103
			 | 
			
				1103
			 | 
			
			
				 	if [[ $REMOVE != 'yes' ]]; then 
			 | 
		
	
		
			
			| 
				1104
			 | 
			
				
			 | 
			
			
				-		mesh_babel 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1104
			 | 
			
			
				+		install_babel 
			 | 
		
	
		
			
			| 
				1105
			 | 
			
				1105
			 | 
			
			
				 	else 
			 | 
		
	
		
			
			| 
				1106
			 | 
			
				
			 | 
			
			
				-		mesh_babel_remove 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1106
			 | 
			
			
				+		install_babel_remove 
			 | 
		
	
		
			
			| 
				1107
			 | 
			
				1107
			 | 
			
			
				 	fi 
			 | 
		
	
		
			
			| 
				1108
			 | 
			
				1108
			 | 
			
			
				 fi 
			 | 
		
	
		
			
			| 
				1109
			 | 
			
				1109
			 | 
			
			
				 if [[ $FN == 'babel_client' ]]; then 
			 | 
		
	
		
			
			| 
				1110
			 | 
			
				
			 | 
			
			
				-	mesh_babel_client 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1110
			 | 
			
			
				+	install_babel_client 
			 | 
		
	
		
			
			| 
				1111
			 | 
			
				1111
			 | 
			
			
				 fi 
			 | 
		
	
		
			
			| 
				1112
			 | 
			
				1112
			 | 
			
			
				 if [[ $FN == 'avahi' ]]; then 
			 | 
		
	
		
			
			| 
				1113
			 | 
			
				1113
			 | 
			
			
				 	mesh_avahi 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -1117,13 +1117,13 @@ if [[ $FN == 'firewall' ]]; then 
			 | 
		
	
		
			
			| 
				1117
			 | 
			
				1117
			 | 
			
			
				 fi 
			 | 
		
	
		
			
			| 
				1118
			 | 
			
				1118
			 | 
			
			
				 if [[ $FN == 'batman' ]]; then 
			 | 
		
	
		
			
			| 
				1119
			 | 
			
				1119
			 | 
			
			
				 	if [[ $REMOVE != 'yes' ]]; then 
			 | 
		
	
		
			
			| 
				1120
			 | 
			
				
			 | 
			
			
				-		mesh_batman 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1120
			 | 
			
			
				+		install_batman 
			 | 
		
	
		
			
			| 
				1121
			 | 
			
				1121
			 | 
			
			
				 	else 
			 | 
		
	
		
			
			| 
				1122
			 | 
			
				
			 | 
			
			
				-		mesh_batman_remove 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1122
			 | 
			
			
				+		install_batman_remove 
			 | 
		
	
		
			
			| 
				1123
			 | 
			
				1123
			 | 
			
			
				 	fi 
			 | 
		
	
		
			
			| 
				1124
			 | 
			
				1124
			 | 
			
			
				 fi 
			 | 
		
	
		
			
			| 
				1125
			 | 
			
				1125
			 | 
			
			
				 if [[ $FN == 'batman_client' ]]; then 
			 | 
		
	
		
			
			| 
				1126
			 | 
			
				
			 | 
			
			
				-	mesh_batman_client 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1126
			 | 
			
			
				+	install_batman_client 
			 | 
		
	
		
			
			| 
				1127
			 | 
			
				1127
			 | 
			
			
				 fi 
			 | 
		
	
		
			
			| 
				1128
			 | 
			
				1128
			 | 
			
			
				 if [[ $FN == 'tox_node' ]]; then 
			 | 
		
	
		
			
			| 
				1129
			 | 
			
				1129
			 | 
			
			
				 	if [[ $REMOVE != 'yes' ]]; then 
			 |