Don't ask for RNG type when installing on Beaglebone Black, just use the HRNG
This commit is contained in:
parent
40b78a0f39
commit
3c84405f50
|
@ -163,7 +163,9 @@ function save_configuration_file {
|
|||
echo "DDNS_PROVIDER=$DDNS_PROVIDER" >> $CONFIGURATION_FILE
|
||||
echo "DDNS_USERNAME=$DDNS_USERNAME" >> $CONFIGURATION_FILE
|
||||
echo "DDNS_PASSWORD=$DDNS_PASSWORD" >> $CONFIGURATION_FILE
|
||||
if [ $MY_NAME ]; then
|
||||
echo "MY_NAME=$MY_NAME" >> $CONFIGURATION_FILE
|
||||
fi
|
||||
echo "MY_EMAIL_ADDRESS=$MY_EMAIL_ADDRESS" >> $CONFIGURATION_FILE
|
||||
echo "LOCAL_NETWORK_STATIC_IP_ADDRESS=$LOCAL_NETWORK_STATIC_IP_ADDRESS" >> $CONFIGURATION_FILE
|
||||
echo "ROUTER_IP_ADDRESS=$ROUTER_IP_ADDRESS" >> $CONFIGURATION_FILE
|
||||
|
@ -639,32 +641,26 @@ function interactive_configuration {
|
|||
|
||||
data=$(tempfile 2>/dev/null)
|
||||
trap "rm -f $data" 0 1 2 5 15
|
||||
if [[ $INSTALLING_ON_BBB == "no" ]]; then
|
||||
if [[ $INSTALLING_ON_BBB != "yes" ]]; then
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
--radiolist "Type of Random Number Generator:" 10 40 3 \
|
||||
--radiolist "Type of Random Number Generator:" 10 40 2 \
|
||||
1 Haveged on \
|
||||
2 "Beaglebone built-in HRNG" off \
|
||||
3 OneRNG off 2> $data
|
||||
else
|
||||
dialog --backtitle "Freedombone Configuration" \
|
||||
--radiolist "Type of Random Number Generator:" 10 40 3 \
|
||||
1 Haveged off \
|
||||
2 "Beaglebone built-in HRNG" on \
|
||||
3 OneRNG off 2> $data
|
||||
fi
|
||||
2 OneRNG off 2> $data
|
||||
sel=$?
|
||||
case $sel in
|
||||
1) exit 1;;
|
||||
255) exit 1;;
|
||||
esac
|
||||
case $(cat $data) in
|
||||
2) HWRNG_TYPE="beaglebone";;
|
||||
3) HWRNG_TYPE="onerng"
|
||||
2) HWRNG_TYPE="onerng"
|
||||
dialog --title "OneRNG Device" \
|
||||
--msgbox "Please ensure that the OneRNG device is disconnected. You can reconnect it later during the installation" 8 60
|
||||
;;
|
||||
255) exit 1;;
|
||||
esac
|
||||
else
|
||||
HWRNG_TYPE="beaglebone"
|
||||
fi
|
||||
save_configuration_file
|
||||
|
||||
data=$(tempfile 2>/dev/null)
|
||||
|
@ -938,6 +934,7 @@ function interactive_configuration {
|
|||
save_configuration_file
|
||||
fi
|
||||
|
||||
if [[ $SYSTEM_TYPE != $VARIANT_MESH ]]; then
|
||||
while [ ! $MY_NAME ]
|
||||
do
|
||||
data=$(tempfile 2>/dev/null)
|
||||
|
@ -952,6 +949,7 @@ function interactive_configuration {
|
|||
esac
|
||||
done
|
||||
save_configuration_file
|
||||
fi
|
||||
|
||||
if [ ! $LOCAL_NETWORK_STATIC_IP_ADDRESS ]; then
|
||||
LOCAL_NETWORK_STATIC_IP_ADDRESS=$(grep 'LOCAL_NETWORK_STATIC_IP_ADDRESS' temp.cfg | awk -F '=' '{print $2}')
|
||||
|
|
Loading…
Reference in New Issue