Quellcode durchsuchen

Remove duplicate functions

Bob Mottram vor 8 Jahren
Ursprung
Commit
350ab2682f
2 geänderte Dateien mit 0 neuen und 356 gelöschten Zeilen
  1. 0
    28
      src/freedombone-app-zeronet
  2. 0
    328
      src/freedombone-mesh-install

+ 0
- 28
src/freedombone-app-zeronet Datei anzeigen

@@ -461,34 +461,6 @@ function install_zeronet_main {
461 461
 }
462 462
 
463 463
 function mesh_zeronet {
464
-	# obtain commits from the main file
465
-	ZERONET_COMMIT_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-zeronet | grep "ZERONET_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
466
-	if [ ${#ZERONET_COMMIT_MAIN} -gt 10 ]; then
467
-		ZERONET_COMMIT=$ZERONET_COMMIT_MAIN
468
-	fi
469
-	if [ ! $ZERONET_COMMIT ]; then
470
-		echo $'No Tox commit was specified'
471
-		exit 37046
472
-	fi
473
-
474
-	ZERONET_REPO_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-zeronet | grep "ZERONET_REPO=" | head -n 1 | awk -F '"' '{print $2}')
475
-	if [ ${#ZERONET_REPO_MAIN} -gt 5 ]; then
476
-		ZERONET_REPO=$ZERONET_REPO_MAIN
477
-	fi
478
-	if [ ! $ZERONET_REPO ]; then
479
-		echo $'No Tox commit was specified'
480
-		exit 37046
481
-	fi
482
-
483
-	ZERONET_PORT_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-zeronet | grep "ZERONET_PORT=" | head -n 1 | awk -F '=' '{print $2}')
484
-	if [ ${#ZERONET_PORT_MAIN} -gt 1 ]; then
485
-		ZERONET_PORT=$ZERONET_PORT_MAIN
486
-	fi
487
-	if [ ! $ZERONET_PORT ]; then
488
-		echo $'No zeronet port was specified'
489
-		exit 67433
490
-	fi
491
-
492 464
 	chroot "$rootdir" apt-get -y install python python-msgpack python-gevent
493 465
 	chroot "$rootdir" apt-get -y install python-pip bittornado
494 466
 	chroot "$rootdir" pip install msgpack-python --upgrade

+ 0
- 328
src/freedombone-mesh-install Datei anzeigen

@@ -425,194 +425,6 @@ function mesh_firewall {
425 425
 	$CHROOT_PREFIX systemctl enable meshfirewall
426 426
 }
427 427
 
428
-function mesh_tox_node_remove {
429
-	systemctl stop tox-bootstrapd
430
-	systemctl disable tox-bootstrapd
431
-	if [ -f /etc/systemd/system/tox-bootstrapd.service ]; then
432
-		rm /etc/systemd/system/tox-bootstrapd.service
433
-	fi
434
-	if [ -d $INSTALL_DIR/toxcore ]; then
435
-		cd $INSTALL_DIR/toxcore
436
-		make uninstall
437
-		rm -rf $INSTALL_DIR/toxcore
438
-	fi
439
-	if [ -f /etc/tox-bootstrapd.conf ]; then
440
-		rm /etc/tox-bootstrapd.conf
441
-	fi
442
-}
443
-
444
-function mesh_tox_node {
445
-	# obtain commits from the main file
446
-	TOXCORE_COMMIT_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
447
-	if [ ${#TOXCORE_COMMIT_MAIN} -gt 10 ]; then
448
-		TOXCORE_COMMIT=$TOXCORE_COMMIT_MAIN
449
-	fi
450
-	if [ ! $TOXCORE_COMMIT ]; then
451
-		echo $'No Tox commit was specified'
452
-		exit 76325
453
-	fi
454
-
455
-	TOXID_REPO_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox | grep "TOXID_REPO=" | head -n 1 | awk -F '"' '{print $2}')
456
-	if [ ${#TOXID_REPO_MAIN} -gt 5 ]; then
457
-		TOXID_REPO=$TOXID_REPO_MAIN
458
-	fi
459
-	if [ ! $TOXID_REPO ]; then
460
-		echo $'No ToxID repo was specified'
461
-		exit 78252
462
-	fi
463
-
464
-	TOX_PORT_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox | grep "TOX_PORT=" | head -n 1 | awk -F '=' '{print $2}')
465
-	if [ ${#TOX_PORT_MAIN} -gt 2 ]; then
466
-		TOX_PORT=$TOX_PORT_MAIN
467
-	fi
468
-	if [ ! $TOX_PORT ]; then
469
-		echo $'No Tox port was specified'
470
-		exit 32856
471
-	fi
472
-
473
-	TOXCORE_REPO_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox | grep "TOXCORE_REPO=" | head -n 1 | awk -F '"' '{print $2}')
474
-	if [ ${#TOXCORE_REPO_MAIN} -gt 10 ]; then
475
-		TOXCORE_REPO=$TOXCORE_REPO_MAIN
476
-	fi
477
-	if [ ! $TOXCORE_REPO ]; then
478
-		echo $'No Tox repo was specified'
479
-		exit 16865
480
-	fi
481
-
482
-	$CHROOT_PREFIX apt-get -y install build-essential libtool autotools-dev
483
-	$CHROOT_PREFIX apt-get -y install automake checkinstall check git yasm
484
-	$CHROOT_PREFIX apt-get -y install libsodium13 libsodium-dev libcap2-bin
485
-	$CHROOT_PREFIX apt-get -y install libconfig9 libconfig-dev
486
-
487
-	$CHROOT_PREFIX mkdir -p $INSTALL_DIR
488
-	$CHROOT_PREFIX git_clone $TOXCORE_REPO $INSTALL_DIR/toxcore
489
-	$CHROOT_PREFIX cd $INSTALL_DIR/toxcore
490
-	$CHROOT_PREFIX git checkout $TOXCORE_COMMIT -b $TOXCORE_COMMIT
491
-
492
-	$CHROOT_PREFIX autoreconf -i
493
-	$CHROOT_PREFIX ./configure --enable-daemon --disable-av
494
-	$CHROOT_PREFIX make clean
495
-	$CHROOT_PREFIX make -k
496
-	if [ ! "$?" = "0" ]; then
497
-		return
498
-	fi
499
-	$CHROOT_PREFIX make install
500
-	$CHROOT_PREFIX cp /usr/local/lib/libtoxcore* /usr/lib/
501
-
502
-	if [ ! -f $rootdir/usr/local/bin/tox-bootstrapd ]; then
503
-		echo $"File not found /usr/local/bin/tox-bootstrapd"
504
-		return
505
-	fi
506
-
507
-	$CHROOT_PREFIX useradd --home-dir /var/lib/tox-bootstrapd --create-home --system --shell /sbin/nologin --comment $"Account to run Tox's DHT bootstrap daemon" --user-group tox-bootstrapd
508
-	$CHROOT_PREFIX chmod 700 /var/lib/tox-bootstrapd
509
-	if [ ! -f $rootdir/$INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.conf ]; then
510
-		echo $"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.conf"
511
-	fi
512
-	# remove Maildir
513
-	if [ -d $rootdir/var/lib/tox-bootstrapd/Maildir ]; then
514
-		rm -rf $rootdir/var/lib/tox-bootstrapd/Maildir
515
-	fi
516
-
517
-	# create configuration file
518
-	TOX_BOOTSTRAP_CONFIG=${rootdir}/etc/tox-bootstrapd.conf
519
-	echo "port = $TOX_PORT" > $TOX_BOOTSTRAP_CONFIG
520
-	echo 'keys_file_path = "/var/lib/tox-bootstrapd/keys"' >> $TOX_BOOTSTRAP_CONFIG
521
-	echo 'pid_file_path = "/var/run/tox-bootstrapd/tox-bootstrapd.pid"' >> $TOX_BOOTSTRAP_CONFIG
522
-	echo 'enable_ipv6 = true' >> $TOX_BOOTSTRAP_CONFIG
523
-	echo 'enable_ipv4_fallback = true' >> $TOX_BOOTSTRAP_CONFIG
524
-	echo 'enable_lan_discovery = true' >> $TOX_BOOTSTRAP_CONFIG
525
-	echo 'enable_tcp_relay = true' >> $TOX_BOOTSTRAP_CONFIG
526
-	echo "tcp_relay_ports = [443, 3389, $TOX_PORT]" >> $TOX_BOOTSTRAP_CONFIG
527
-	echo 'enable_motd = true' >> $TOX_BOOTSTRAP_CONFIG
528
-	echo 'motd = "tox-bootstrapd"' >> $TOX_BOOTSTRAP_CONFIG
529
-
530
-	if [ $TOX_NODES ]; then
531
-		echo 'bootstrap_nodes = (' >> $TOX_BOOTSTRAP_CONFIG
532
-		toxcount=0
533
-		while [ "x${TOX_NODES[toxcount]}" != "x" ]
534
-		do
535
-			toxval_ipv4=$(echo $TOX_NODES[toxcount] | awk -F ',' '{print $1}')
536
-			toxval_ipv6=$(echo $TOX_NODES[toxcount] | awk -F ',' '{print $2}')
537
-			toxval_port=$(echo $TOX_NODES[toxcount] | awk -F ',' '{print $3}')
538
-			toxval_pubkey=$(echo $TOX_NODES[toxcount] | awk -F ',' '{print $4}')
539
-			toxval_maintainer=$(echo $TOX_NODES[toxcount] | awk -F ',' '{print $5}')
540
-			echo "{ // $toxval_maintainer" >> $TOX_BOOTSTRAP_CONFIG
541
-			if [[ $toxval_ipv6 != 'NONE' ]]; then
542
-				echo "  address = \"$toxval_ipv6\"" >> $TOX_BOOTSTRAP_CONFIG
543
-			else
544
-				echo "  address = \"$toxval_ipv4\"" >> $TOX_BOOTSTRAP_CONFIG
545
-			fi
546
-			echo "  port = $toxval_port" >> $TOX_BOOTSTRAP_CONFIG
547
-			echo "  public_key = \"$toxval_pubkey\"" >> $TOX_BOOTSTRAP_CONFIG
548
-			toxcount=$(( $toxcount + 1 ))
549
-			if [ "x${TOX_NODES[toxcount]}" != "x" ]; then
550
-				echo "}," >> $TOX_BOOTSTRAP_CONFIG
551
-			else
552
-				echo "}" >> $TOX_BOOTSTRAP_CONFIG
553
-			fi
554
-		done
555
-		echo ')' >> $TOX_BOOTSTRAP_CONFIG
556
-	fi
557
-
558
-	if [ ! -f $rootdir/$INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service ]; then
559
-		echo $"File not found $INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service"
560
-		return
561
-	fi
562
-	cp $rootdir/$INSTALL_DIR/toxcore/other/bootstrap_daemon/tox-bootstrapd.service $rootdir/etc/systemd/system/
563
-	sed -i 's|ExecStart=.*|ExecStart=/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf|g' $rootdir/etc/systemd/system/tox-bootstrapd.service
564
-
565
-	$CHROOT_PREFIX systemctl daemon-reload
566
-	$CHROOT_PREFIX systemctl enable tox-bootstrapd.service
567
-}
568
-
569
-function mesh_tox_client_remove {
570
-	if [ ! -d $INSTALL_DIR/toxic ]; then
571
-		return
572
-	fi
573
-	cd $INSTALL_DIR/toxic
574
-	make uninstall
575
-	rm -rf $INSTALL_DIR/toxic
576
-}
577
-
578
-function mesh_tox_client {
579
-	TOXIC_FILE=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
580
-
581
-	# obtain commits from the main file
582
-	TOXIC_COMMIT_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox | grep "TOXIC_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
583
-	if [ ${#TOXIC_COMMIT_MAIN} -gt 10 ]; then
584
-		TOXIC_COMMIT=$TOXIC_COMMIT_MAIN
585
-	fi
586
-
587
-	TOXIC_REPO_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox | grep "TOXIC_REPO=" | head -n 1 | awk -F '"' '{print $2}')
588
-	if [ ${#TOXIC_REPO_MAIN} -gt 5 ]; then
589
-		TOXIC_REPO=$TOXIC_REPO_MAIN
590
-	fi
591
-
592
-	$CHROOT_PREFIX apt-get -y install libncursesw5-dev libconfig-dev libqrencode-dev
593
-	$CHROOT_PREFIX apt-get -y install libcurl4-openssl-dev libvpx-dev libopenal-dev
594
-
595
-	$CHROOT_PREFIX git_clone $TOXIC_REPO $INSTALL_DIR/toxic
596
-	$CHROOT_PREFIX cd $INSTALL_DIR/toxic
597
-	$CHROOT_PREFIX git checkout $TOXIC_COMMIT -b $TOXIC_COMMIT
598
-	if ! grep -q "Toxic commit" $rootdir$COMPLETION_FILE; then
599
-		echo "Toxic commit:$TOXIC_COMMIT" >> $rootdir$COMPLETION_FILE
600
-	else
601
-		sed -i "s|Toxic commit.*|Toxic commit:$TOXIC_COMMIT|g" $rootdir$COMPLETION_FILE
602
-	fi
603
-
604
-	$CHROOT_PREFIX make clean
605
-	$CHROOT_PREFIX make -k
606
-	if [ ! -f $INSTALL_DIR/toxic/build/toxic ]; then
607
-		exit 74872
608
-	fi
609
-	$CHROOT_PREFIX make install
610
-	if [ ! -f $TOXIC_FILE ]; then
611
-		echo $'Tox client was not installed'
612
-		exit 63278
613
-	fi
614
-}
615
-
616 428
 function enable_tox_repo {
617 429
 	sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/antonbatenev:/tox/Debian_8.0/ /' > /etc/apt/sources.list.d/tox.list"
618 430
 	wget http://download.opensuse.org/repositories/home:antonbatenev:tox/Debian_8.0/Release.key
@@ -633,125 +445,6 @@ function mesh_tox_client_toxic_from_repo {
633 445
 	echo "Toxic Installed."
634 446
 }
635 447
 
636
-function mesh_zeronet_remove {
637
-	systemctl stop zeronet
638
-	systemctl disable zeronet
639
-	systemctl stop tracker
640
-	systemctl disable tracker
641
-	$CHROOT_PREFIX apt-get -y remove --purge bittornado
642
-	if [ -f $rootdir/etc/systemd/system/zeronet.service ]; then
643
-		rm $rootdir/etc/systemd/system/zeronet.service
644
-	fi
645
-	if [ -f $rootdir/etc/systemd/system/tracker.service ]; then
646
-		rm $rootdir/etc/systemd/system/tracker.service
647
-	fi
648
-	if [ -d $rootdir$MESH_INSTALL_DIR/zeronet ]; then
649
-		rm -rf $rootdir$MESH_INSTALL_DIR/zeronet
650
-	fi
651
-	userdel -r zeronet
652
-}
653
-
654
-function mesh_zeronet {
655
-	# obtain commits from the main file
656
-	ZERONET_COMMIT_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-zeronet | grep "ZERONET_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
657
-	if [ ${#ZERONET_COMMIT_MAIN} -gt 10 ]; then
658
-		ZERONET_COMMIT=$ZERONET_COMMIT_MAIN
659
-	fi
660
-	if [ ! $ZERONET_COMMIT ]; then
661
-		echo $'No Tox commit was specified'
662
-		exit 37046
663
-	fi
664
-
665
-	ZERONET_REPO_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-zeronet | grep "ZERONET_REPO=" | head -n 1 | awk -F '"' '{print $2}')
666
-	if [ ${#ZERONET_REPO_MAIN} -gt 5 ]; then
667
-		ZERONET_REPO=$ZERONET_REPO_MAIN
668
-	fi
669
-	if [ ! $ZERONET_REPO ]; then
670
-		echo $'No Tox commit was specified'
671
-		exit 37046
672
-	fi
673
-
674
-	ZERONET_PORT_MAIN=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-zeronet | grep "ZERONET_PORT=" | head -n 1 | awk -F '=' '{print $2}')
675
-	if [ ${#ZERONET_PORT_MAIN} -gt 1 ]; then
676
-		ZERONET_PORT=$ZERONET_PORT_MAIN
677
-	fi
678
-	if [ ! $ZERONET_PORT ]; then
679
-		echo $'No zeronet port was specified'
680
-		exit 67433
681
-	fi
682
-
683
-	$CHROOT_PREFIX apt-get -y install python python-msgpack python-gevent
684
-	$CHROOT_PREFIX apt-get -y install python-pip bittornado
685
-	$CHROOT_PREFIX pip install msgpack-python --upgrade
686
-	$CHROOT_PREFIX pip install gevent --upgrade
687
-
688
-	$CHROOT_PREFIX useradd -d $MESH_INSTALL_DIR/zeronet/ -s /bin/false zeronet
689
-	git_clone $ZERONET_REPO $rootdir$MESH_INSTALL_DIR/zeronet
690
-	if [ ! -d $rootdir$MESH_INSTALL_DIR/zeronet ]; then
691
-		echo 'WARNING: Unable to clone zeronet'
692
-		return
693
-	fi
694
-	cd $rootdir$MESH_INSTALL_DIR/zeronet
695
-	git checkout $ZERONET_COMMIT -b $ZERONET_COMMIT
696
-	if ! grep -q "ZeroNet commit" $COMPLETION_FILE; then
697
-		echo "ZeroNet commit:$ZERONET_COMMIT" >> $rootdir$COMPLETION_FILE
698
-	else
699
-		sed -i "s/ZeroNet commit.*/ZeroNet commit:$ZERONET_COMMIT/g" $COMPLETION_FILE
700
-	fi
701
-	chown -R zeronet:zeronet $rootdir$MESH_INSTALL_DIR/zeronet
702
-
703
-	# Hack to ensure that the file access port is opened
704
-	# This is because zeronet normally relies on an internet site
705
-	# to do this, but on a purely local mesh the internet isn't available
706
-	sed -i 's|fileserver_port = 0|fileserver_port = config.fileserver_port\n            sys.modules["main"].file_server.port_opened = True|g' $rootdir$MESH_INSTALL_DIR/zeronet/src/Site/Site.py
707
-
708
-	ZERPNET_DAEMON=$rootdir/etc/systemd/system/zeronet.service
709
-	echo '[Unit]' > $ZERONET_DAEMON
710
-	echo 'Description=Zeronet Server' >> $ZERONET_DAEMON
711
-	echo 'After=syslog.target' >> $ZERONET_DAEMON
712
-	echo 'After=network.target' >> $ZERONET_DAEMON
713
-	echo '[Service]' >> $ZERONET_DAEMON
714
-	echo 'Type=simple' >> $ZERONET_DAEMON
715
-	echo 'User=zeronet' >> $ZERONET_DAEMON
716
-	echo 'Group=zeronet' >> $ZERONET_DAEMON
717
-	echo "WorkingDirectory=$MESH_INSTALL_DIR/zeronet" >> $ZERONET_DAEMON
718
-	echo "ExecStart=/usr/bin/python zeronet.py --ip_external replace.local --trackers_file $MESH_INSTALL_DIR/zeronet/bootstrap" >> $ZERONET_DAEMON
719
-	echo '' >> $ZERONET_DAEMON
720
-	echo 'TimeoutSec=300' >> $ZERONET_DAEMON
721
-	echo '' >> $ZERONET_DAEMON
722
-	echo '[Install]' >> $ZERONET_DAEMON
723
-	echo 'WantedBy=multi-user.target' >> $ZERONET_DAEMON
724
-
725
-	TRACKER_DAEMON=$rootdir/etc/systemd/system/tracker.service
726
-	echo '[Unit]' > $TRACKER_DAEMON
727
-	echo 'Description=Torrent Tracker' >> $TRACKER_DAEMON
728
-	echo 'After=syslog.target' >> $TRACKER_DAEMON
729
-	echo 'After=network.target' >> $TRACKER_DAEMON
730
-	echo '[Service]' >> $TRACKER_DAEMON
731
-	echo 'Type=simple' >> $TRACKER_DAEMON
732
-	echo 'User=tracker' >> $TRACKER_DAEMON
733
-	echo 'Group=tracker' >> $TRACKER_DAEMON
734
-	echo "WorkingDirectory=$MESH_INSTALL_DIR/tracker" >> $TRACKER_DAEMON
735
-	echo "ExecStart=/usr/bin/bttrack --port $TRACKER_PORT --dfile $MESH_INSTALL_DIR/tracker/dstate --logfile $MESH_INSTALL_DIR/tracker/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0" >> $TRACKER_DAEMON
736
-	echo '' >> $TRACKER_DAEMON
737
-	echo 'TimeoutSec=300' >> $TRACKER_DAEMON
738
-	echo '' >> $TRACKER_DAEMON
739
-	echo '[Install]' >> $TRACKER_DAEMON
740
-	echo 'WantedBy=multi-user.target' >> $TRACKER_DAEMON
741
-
742
-	$CHROOT_PREFIX useradd -d $MESH_INSTALL_DIR/tracker/ -s /bin/false tracker
743
-	if [ ! -d $rootdir$MESH_INSTALL_DIR/tracker ]; then
744
-		mkdir $rootdir$MESH_INSTALL_DIR/tracker
745
-	fi
746
-	chown -R tracker:tracker $rootdir$MESH_INSTALL_DIR/tracker
747
-
748
-	# publish regularly
749
-	echo "* *     * * *   root    zeronetavahi > /dev/null" >> $rootdir/etc/crontab
750
-
751
-	$CHROOT_PREFIX systemctl enable tracker.service
752
-	$CHROOT_PREFIX systemctl enable zeronet.service
753
-}
754
-
755 448
 function install_batman_client {
756 449
 	TOXIC_FILE=$(cat /usr/share/${PROJECT_NAME}/apps/${PROJECT_NAME}-app-tox | grep "TOXIC_FILE=" | head -n 1 | awk -F '=' '{print $2}')
757 450
 
@@ -1074,27 +767,6 @@ fi
1074 767
 if [[ $FN == 'batman_client' ]]; then
1075 768
 	install_batman_client
1076 769
 fi
1077
-if [[ $FN == 'tox_node' ]]; then
1078
-	if [[ $REMOVE != 'yes' ]]; then
1079
-		mesh_tox_node
1080
-	else
1081
-		mesh_tox_node_remove
1082
-	fi
1083
-fi
1084
-if [[ $FN == 'tox_client' ]]; then
1085
-	if [[ $REMOVE != 'yes' ]]; then
1086
-		mesh_tox_client
1087
-	else
1088
-		mesh_tox_client_remove
1089
-	fi
1090
-fi
1091
-if [[ $FN == 'zeronet' ]]; then
1092
-	if [[ $REMOVE != 'yes' ]]; then
1093
-		mesh_zeronet
1094
-	else
1095
-		mesh_zeronet_remove
1096
-	fi
1097
-fi
1098 770
 if [[ $FN == 'qtox' ]]; then
1099 771
 	mesh_tox_client_qtox
1100 772
 fi