From ea253b37bd63b6ed6c593b151be50fe2fdabbae2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 21 Jul 2015 22:52:58 +0100 Subject: [PATCH] Beginning of babel mesh in the interactive installer --- src/freedombone-config | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedombone-config b/src/freedombone-config index c796bb0b..dbed6d4e 100755 --- a/src/freedombone-config +++ b/src/freedombone-config @@ -67,6 +67,7 @@ LOCAL_NETWORK_STATIC_IP_ADDRESS= ROUTER_IP_ADDRESS= ENABLE_CJDNS= ENABLE_BATMAN= +ENABLE_BABEL= DEBIAN_REPO= NAMESERVER1= NAMESERVER2= @@ -171,6 +172,9 @@ function save_configuration_file { if [ $ENABLE_BATMAN ]; then echo "ENABLE_BATMAN=$ENABLE_BATMAN" >> $CONFIGURATION_FILE fi + if [ $ENABLE_BABEL ]; then + echo "ENABLE_BABEL=$ENABLE_BABEL" >> $CONFIGURATION_FILE + fi echo "DEBIAN_REPO=$DEBIAN_REPO" >> $CONFIGURATION_FILE echo "NAMESERVER1=$NAMESERVER1" >> $CONFIGURATION_FILE echo "NAMESERVER2=$NAMESERVER2" >> $CONFIGURATION_FILE @@ -506,6 +510,7 @@ function interactive_configuration { if [[ $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then ENABLE_BATMAN="yes" ENABLE_CJDNS="no" + ENABLE_BABEL="no" fi data=$(tempfile 2>/dev/null) @@ -1384,6 +1389,9 @@ function read_configuration { if grep -q "ENABLE_BATMAN" $CONFIGURATION_FILE; then ENABLE_BATMAN=$(grep "ENABLE_BATMAN" $CONFIGURATION_FILE | awk -F '=' '{print $2}') fi + if grep -q "ENABLE_BABEL" $CONFIGURATION_FILE; then + ENABLE_BABEL=$(grep "ENABLE_BABEL" $CONFIGURATION_FILE | awk -F '=' '{print $2}') + fi if grep -q "BATMAN_IPV6" $CONFIGURATION_FILE; then BATMAN_IPV6=$(grep "BATMAN_IPV6" $CONFIGURATION_FILE | awk -F '=' '{print $2}') fi