Test code

This commit is contained in:
Bob Mottram 2015-08-31 10:44:50 +01:00
parent 1eeacffe5c
commit 25a236fd65
2 changed files with 5 additions and 2 deletions

View File

@ -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 $TRACKER_PORT -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 ' if [ -f /bin/systemctl ]; then' >> $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 $TRACKER_PORT -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 ' if [ -f /bin/systemctl ]; then' >> $batman_script
echo ' systemctl restart network-manager' >> $batman_script

View File

@ -26,7 +26,8 @@ function install_zeronet {
exit 56823
fi
cd $ZERONET_DIR
git checkout bashrc/bootstrap-file
#git checkout bashrc/bootstrap-file
git checkout bashrc/test
}
if [ -f /var/lib/batman ]; then
@ -80,7 +81,7 @@ if [ $existing_bttrack -lt "2" ]; then
if [ ! -d ~/.bttrack ]; then
mkdir ~/.bttrack
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
zeronetavahi