Selectable mesh network protocol
This commit is contained in:
parent
1727a46bd4
commit
cbf4fa9760
|
@ -508,9 +508,28 @@ function interactive_configuration {
|
|||
save_configuration_file
|
||||
|
||||
if [[ $SYSTEM_TYPE == "$VARIANT_MESH" ]]; then
|
||||
ENABLE_BATMAN="yes"
|
||||
ENABLE_BATMAN="no"
|
||||
ENABLE_CJDNS="no"
|
||||
ENABLE_BABEL="no"
|
||||
|
||||
data=$(tempfile 2>/dev/null)
|
||||
trap "rm -f $data" 0 1 2 5 15
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
--radiolist "Select your type of mesh network:" 10 40 3 \
|
||||
1 "Babel" off \
|
||||
2 "B.A.T.M.A.N. Advanced" on \
|
||||
3 "cjdns" off 2> $data
|
||||
sel=$?
|
||||
case $sel in
|
||||
1) exit 1;;
|
||||
255) exit 1;;
|
||||
esac
|
||||
case $(cat $data) in
|
||||
1) ENABLE_BABEL="yes";;
|
||||
2) ENABLE_BATMAN="yes";;
|
||||
3) ENABLE_CJDNS="yes";;
|
||||
esac
|
||||
save_configuration_file
|
||||
fi
|
||||
|
||||
data=$(tempfile 2>/dev/null)
|
||||
|
|
Loading…
Reference in New Issue