|
@@ -348,92 +348,6 @@ function choose_dynamic_dns {
|
348
|
348
|
fi
|
349
|
349
|
}
|
350
|
350
|
|
351
|
|
-function choose_dns {
|
352
|
|
- if [[ $MINIMAL_INSTALL == "no" && $ONION_ONLY == "no" ]]; then
|
353
|
|
- data=$(tempfile 2>/dev/null)
|
354
|
|
- trap "rm -f $data" 0 1 2 5 15
|
355
|
|
- dialog --backtitle $"Freedombone Configuration" \
|
356
|
|
- --radiolist $"Pick a domain name service (DNS):" 25 50 16 \
|
357
|
|
- 1 $"Digital Courage" on \
|
358
|
|
- 2 $"German Privacy Foundation 1" off \
|
359
|
|
- 3 $"German Privacy Foundation 2" off \
|
360
|
|
- 4 $"Chaos Computer Club" off \
|
361
|
|
- 5 $"ClaraNet" off \
|
362
|
|
- 6 $"OpenNIC 1" off \
|
363
|
|
- 7 $"OpenNIC 2" off \
|
364
|
|
- 8 $"OpenNIC 3" off \
|
365
|
|
- 9 $"OpenNIC 4" off \
|
366
|
|
- 10 $"OpenNIC 5" off \
|
367
|
|
- 11 $"OpenNIC 6" off \
|
368
|
|
- 12 $"OpenNIC 7" off \
|
369
|
|
- 13 $"PowerNS" off \
|
370
|
|
- 14 $"ValiDOM" off \
|
371
|
|
- 15 $"Freie Unzensierte" off \
|
372
|
|
- 16 $"Google" off 2> $data
|
373
|
|
- sel=$?
|
374
|
|
- case $sel in
|
375
|
|
- 1) exit 1;;
|
376
|
|
- 255) exit 1;;
|
377
|
|
- esac
|
378
|
|
- case $(cat $data) in
|
379
|
|
- 1) NAMESERVER1='85.214.73.63'
|
380
|
|
- NAMESERVER2='213.73.91.35'
|
381
|
|
- ;;
|
382
|
|
- 2) NAMESERVER1='87.118.100.175'
|
383
|
|
- NAMESERVER2='94.75.228.29'
|
384
|
|
- ;;
|
385
|
|
- 3) NAMESERVER1='85.25.251.254'
|
386
|
|
- NAMESERVER2='2.141.58.13'
|
387
|
|
- ;;
|
388
|
|
- 4) NAMESERVER1='213.73.91.35'
|
389
|
|
- NAMESERVER2='85.214.73.63'
|
390
|
|
- ;;
|
391
|
|
- 5) NAMESERVER1='212.82.225.7'
|
392
|
|
- NAMESERVER2='212.82.226.212'
|
393
|
|
- ;;
|
394
|
|
- 6) NAMESERVER1='58.6.115.42'
|
395
|
|
- NAMESERVER2='58.6.115.43'
|
396
|
|
- ;;
|
397
|
|
- 7) NAMESERVER1='119.31.230.42'
|
398
|
|
- NAMESERVER2='200.252.98.162'
|
399
|
|
- ;;
|
400
|
|
- 8) NAMESERVER1='217.79.186.148'
|
401
|
|
- NAMESERVER2='81.89.98.6'
|
402
|
|
- ;;
|
403
|
|
- 9) NAMESERVER1='78.159.101.37'
|
404
|
|
- NAMESERVER2='203.167.220.153'
|
405
|
|
- ;;
|
406
|
|
- 10) NAMESERVER1='82.229.244.191'
|
407
|
|
- NAMESERVER2='82.229.244.191'
|
408
|
|
- ;;
|
409
|
|
- 11) NAMESERVER1='216.87.84.211'
|
410
|
|
- NAMESERVER2='66.244.95.20'
|
411
|
|
- ;;
|
412
|
|
- 12) NAMESERVER1='207.192.69.155'
|
413
|
|
- NAMESERVER2='72.14.189.120'
|
414
|
|
- ;;
|
415
|
|
- 13) NAMESERVER1='194.145.226.26'
|
416
|
|
- NAMESERVER2='77.220.232.44'
|
417
|
|
- ;;
|
418
|
|
- 14) NAMESERVER1='78.46.89.147'
|
419
|
|
- NAMESERVER2='88.198.75.145'
|
420
|
|
- ;;
|
421
|
|
- 15) NAMESERVER1='85.25.149.144'
|
422
|
|
- NAMESERVER2='87.106.37.196'
|
423
|
|
- ;;
|
424
|
|
- 16) NAMESERVER1='8.8.8.8'
|
425
|
|
- NAMESERVER2='4.4.4.4'
|
426
|
|
- ;;
|
427
|
|
- 255) exit 1;;
|
428
|
|
- esac
|
429
|
|
- save_configuration_values
|
430
|
|
- else
|
431
|
|
- # as defaults for a minimal install process these settings are debatable
|
432
|
|
- NAMESERVER1='85.214.73.63'
|
433
|
|
- NAMESERVER2='213.73.91.35'
|
434
|
|
- fi
|
435
|
|
-}
|
436
|
|
-
|
437
|
351
|
function choose_debian_repo {
|
438
|
352
|
if [[ $MINIMAL_INSTALL == "no" ]]; then
|
439
|
353
|
data=$(tempfile 2>/dev/null)
|
|
@@ -1062,7 +976,6 @@ function interactive_config {
|
1062
|
976
|
choose_social_key_management
|
1063
|
977
|
choose_rng
|
1064
|
978
|
choose_debian_repo
|
1065
|
|
- choose_dns
|
1066
|
979
|
${PROJECT_NAME}-wifi --networksinteractive $WIFI_NETWORKS_FILE
|
1067
|
980
|
choose_dynamic_dns
|
1068
|
981
|
choose_default_domain_name
|