Spacing of wifi channels

This commit is contained in:
Bob Mottram 2015-09-05 18:16:51 +01:00
parent 0a93dfd262
commit d3d60e5f74
1 changed files with 22 additions and 1 deletions

View File

@ -158,7 +158,7 @@ function save_configuration_file {
echo "DEFAULT_DOMAIN_NAME=$DEFAULT_DOMAIN_NAME" >> $CONFIGURATION_FILE
if [ $DEFAULT_DOMAIN_CODE ]; then
echo "DEFAULT_DOMAIN_CODE=$DEFAULT_DOMAIN_CODE" >> $CONFIGURATION_FILE
fi
1 fi
echo "SYSTEM_TYPE=$SYSTEM_TYPE" >> $CONFIGURATION_FILE
echo "INSTALLING_ON_BBB=$INSTALLING_ON_BBB" >> $CONFIGURATION_FILE
echo "USB_DRIVE=$USB_DRIVE" >> $CONFIGURATION_FILE
@ -574,6 +574,27 @@ function interactive_configuration {
DEFAULT_DOMAIN_NAME=$(hostname)
fi
save_configuration_file
data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15
dialog --backtitle "Freedombone Configuration" \
--radiolist "Wifi Channel (spaced to be non-overlapping):" 11 50 4 \
1 "1" on \
2 "5" off \
3 "9" off \
4 "13" off 2> $data
sel=$?
case $sel in
1) exit 1;;
255) exit 1;;
esac
case $(cat $data) in
1) WIFI_CHANNEL=1;;
2) WIFI_CHANNEL=5;;
3) WIFI_CHANNEL=9;;
4) WIFI_CHANNEL=13;;
esac
save_configuration_file
fi
#if [[ $ENABLE_BATMAN == "yes" ]]; then