Beginning of babel mesh
This commit is contained in:
parent
1bcd6a21a1
commit
834e64f8b4
|
@ -378,6 +378,9 @@ CJDNS_PORT=
|
||||||
ENABLE_BATMAN="no"
|
ENABLE_BATMAN="no"
|
||||||
BATMAN_IPV6=
|
BATMAN_IPV6=
|
||||||
|
|
||||||
|
# Babel mesh
|
||||||
|
ENABLE_BABEL="no"
|
||||||
|
|
||||||
# social key management
|
# social key management
|
||||||
ENABLE_SOCIAL_KEY_MANAGEMENT="no"
|
ENABLE_SOCIAL_KEY_MANAGEMENT="no"
|
||||||
|
|
||||||
|
@ -646,6 +649,11 @@ else
|
||||||
shift
|
shift
|
||||||
ENABLE_BATMAN="yes"
|
ENABLE_BATMAN="yes"
|
||||||
;;
|
;;
|
||||||
|
# Enable Babel
|
||||||
|
--babel)
|
||||||
|
shift
|
||||||
|
ENABLE_BABEL="yes"
|
||||||
|
;;
|
||||||
# VoIP server password
|
# VoIP server password
|
||||||
--vpass)
|
--vpass)
|
||||||
shift
|
shift
|
||||||
|
@ -844,6 +852,9 @@ function read_configuration {
|
||||||
if grep -q "LOCAL_NETWORK_STATIC_IP_ADDRESS" $CONFIGURATION_FILE; then
|
if grep -q "LOCAL_NETWORK_STATIC_IP_ADDRESS" $CONFIGURATION_FILE; then
|
||||||
LOCAL_NETWORK_STATIC_IP_ADDRESS=$(grep "LOCAL_NETWORK_STATIC_IP_ADDRESS" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
LOCAL_NETWORK_STATIC_IP_ADDRESS=$(grep "LOCAL_NETWORK_STATIC_IP_ADDRESS" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
||||||
fi
|
fi
|
||||||
|
if grep -q "ENABLE_BABEL" $CONFIGURATION_FILE; then
|
||||||
|
ENABLE_BABEL=$(grep "ENABLE_BABEL" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
||||||
|
fi
|
||||||
if grep -q "ENABLE_BATMAN" $CONFIGURATION_FILE; then
|
if grep -q "ENABLE_BATMAN" $CONFIGURATION_FILE; then
|
||||||
ENABLE_BATMAN=$(grep "ENABLE_BATMAN" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
ENABLE_BATMAN=$(grep "ENABLE_BATMAN" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
||||||
fi
|
fi
|
||||||
|
@ -1564,6 +1575,17 @@ function get_batman_ipv6_address {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mesh_babel {
|
||||||
|
if grep -Fxq "mesh_babel" $COMPLETION_FILE; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
if [[ $ENABLE_BABEL != "yes" ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
apt-get install babeld
|
||||||
|
echo 'mesh_babel' >> $COMPLETION_FILE
|
||||||
|
}
|
||||||
|
|
||||||
function mesh_batman_bridge {
|
function mesh_batman_bridge {
|
||||||
# https://sudoroom.org/wiki/Mesh/Relay_setup
|
# https://sudoroom.org/wiki/Mesh/Relay_setup
|
||||||
# also see http://www.netlore.co.uk/airmesh/
|
# also see http://www.netlore.co.uk/airmesh/
|
||||||
|
@ -1616,7 +1638,7 @@ function mesh_batman_bridge {
|
||||||
echo '#!/bin/bash' > /usr/bin/mesh
|
echo '#!/bin/bash' > /usr/bin/mesh
|
||||||
echo '' > /usr/bin/mesh
|
echo '' > /usr/bin/mesh
|
||||||
echo '# stop network manager to make the mesh network work' >> /usr/bin/mesh
|
echo '# stop network manager to make the mesh network work' >> /usr/bin/mesh
|
||||||
echo 'service networking stop' >> /usr/bin/mesh
|
echo 'systemctl stop networking' >> /usr/bin/mesh
|
||||||
echo '' >> /usr/bin/mesh
|
echo '' >> /usr/bin/mesh
|
||||||
echo -n '# configure the wlan interface to operate with ' >> /usr/bin/mesh
|
echo -n '# configure the wlan interface to operate with ' >> /usr/bin/mesh
|
||||||
echo 'mtus of 1532(batman requires it) and turn enc off ' >> /usr/bin/mesh
|
echo 'mtus of 1532(batman requires it) and turn enc off ' >> /usr/bin/mesh
|
||||||
|
@ -5480,6 +5502,19 @@ function configure_firewall_for_batman {
|
||||||
echo 'configure_firewall_for_batman' >> $COMPLETION_FILE
|
echo 'configure_firewall_for_batman' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function configure_firewall_for_babel {
|
||||||
|
if grep -Fxq "configure_firewall_for_babel" $COMPLETION_FILE; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
if [[ $ENABLE_BABEL != "yes" ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
# DHCP
|
||||||
|
#iptables -A INPUT -i eth0 -p udp --dport 547 -j ACCEPT
|
||||||
|
#save_firewall_settings
|
||||||
|
echo 'configure_firewall_for_babel' >> $COMPLETION_FILE
|
||||||
|
}
|
||||||
|
|
||||||
function configure_firewall_for_dlna {
|
function configure_firewall_for_dlna {
|
||||||
if grep -Fxq "configure_firewall_for_dlna" $COMPLETION_FILE; then
|
if grep -Fxq "configure_firewall_for_dlna" $COMPLETION_FILE; then
|
||||||
return
|
return
|
||||||
|
@ -9744,6 +9779,7 @@ configure_firewall_for_ftp
|
||||||
configure_firewall_for_web_access
|
configure_firewall_for_web_access
|
||||||
configure_firewall_for_cjdns
|
configure_firewall_for_cjdns
|
||||||
configure_firewall_for_batman
|
configure_firewall_for_batman
|
||||||
|
configure_firewall_for_babel
|
||||||
configure_firewall_for_voip
|
configure_firewall_for_voip
|
||||||
remove_proprietary_repos
|
remove_proprietary_repos
|
||||||
change_debian_repos
|
change_debian_repos
|
||||||
|
@ -9765,6 +9801,7 @@ create_git_project
|
||||||
mesh_cjdns
|
mesh_cjdns
|
||||||
mesh_cjdns_tools
|
mesh_cjdns_tools
|
||||||
mesh_batman_bridge
|
mesh_batman_bridge
|
||||||
|
mesh_babel
|
||||||
backup_github_projects
|
backup_github_projects
|
||||||
configure_ssh
|
configure_ssh
|
||||||
remove_instructions_from_motd
|
remove_instructions_from_motd
|
||||||
|
|
Loading…
Reference in New Issue