Test code
This commit is contained in:
parent
1eeacffe5c
commit
25a236fd65
|
@ -342,6 +342,7 @@ function mesh_batman {
|
||||||
echo " iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
echo " iptables -A INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
||||||
echo " iptables -A INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
echo " iptables -A INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
||||||
echo " iptables -A INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
|
echo " iptables -A INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
|
||||||
|
echo " iptables -A INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script
|
||||||
echo '' >> $batman_script
|
echo '' >> $batman_script
|
||||||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||||
echo ' systemctl restart avahi-daemon' >> $batman_script
|
echo ' systemctl restart avahi-daemon' >> $batman_script
|
||||||
|
@ -384,6 +385,7 @@ function mesh_batman {
|
||||||
echo " iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
echo " iptables -D INPUT -p udp --dport $ZERONET_PORT -j ACCEPT" >> $batman_script
|
||||||
echo " iptables -D INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
echo " iptables -D INPUT -p udp --dport $TRACKER_PORT -j ACCEPT" >> $batman_script
|
||||||
echo " iptables -D INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
|
echo " iptables -D INPUT -p udp --dport 1900 -j ACCEPT" >> $batman_script
|
||||||
|
echo " iptables -D INPUT -p tcp --dport 80 -j ACCEPT" >> $batman_script
|
||||||
echo '' >> $batman_script
|
echo '' >> $batman_script
|
||||||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||||
echo ' systemctl restart network-manager' >> $batman_script
|
echo ' systemctl restart network-manager' >> $batman_script
|
||||||
|
|
|
@ -26,7 +26,8 @@ function install_zeronet {
|
||||||
exit 56823
|
exit 56823
|
||||||
fi
|
fi
|
||||||
cd $ZERONET_DIR
|
cd $ZERONET_DIR
|
||||||
git checkout bashrc/bootstrap-file
|
#git checkout bashrc/bootstrap-file
|
||||||
|
git checkout bashrc/test
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -f /var/lib/batman ]; then
|
if [ -f /var/lib/batman ]; then
|
||||||
|
@ -80,7 +81,7 @@ if [ $existing_bttrack -lt "2" ]; then
|
||||||
if [ ! -d ~/.bttrack ]; then
|
if [ ! -d ~/.bttrack ]; then
|
||||||
mkdir ~/.bttrack
|
mkdir ~/.bttrack
|
||||||
fi
|
fi
|
||||||
bttrack --port ${TRACKER_PORT} --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0 --bind 127.0.0.1 &
|
bttrack --port ${TRACKER_PORT} --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --ipv6_enabled 0 &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
zeronetavahi
|
zeronetavahi
|
||||||
|
|
Loading…
Reference in New Issue