Browse Source

Fix DDNS provider

Bob Mottram 10 years ago
parent
commit
3724fb8a16
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      src/freedombone

+ 7
- 1
src/freedombone View File

@@ -439,6 +439,8 @@ function interactive_configuration {
439 439
       255) exit 0;;
440 440
   esac
441 441
 
442
+  data=$(tempfile 2>/dev/null)
443
+  trap "rm -f $data" 0 1 2 5 15
442 444
   dialog --backtitle "Freedombone Configuration" \
443 445
       --radiolist "Choose Dynamic DNS provider:" 15 40 14 \
444 446
       1 dyndns off \
@@ -454,9 +456,13 @@ function interactive_configuration {
454 456
       11 dynsip off \
455 457
       12 sitelutions off \
456 458
       13 dnsexit off \
457
-      14 changeip off
459
+      14 changeip off 2> $data
458 460
   sel=$?
459 461
   case $sel in
462
+      1) exit 0;;
463
+      255) exit 0;;
464
+  esac
465
+  case $(cat $data) in
460 466
       1) DDNS_PROVIDER="default@dyndns.org";;
461 467
       2) DDNS_PROVIDER="default@freedns.afraid.org";;
462 468
       3) DDNS_PROVIDER="default@zoneedit.com";;