Fix DDNS provider

This commit is contained in:
Bob Mottram 2015-01-18 11:01:40 +00:00
parent 73dba7860a
commit 3724fb8a16
1 changed files with 7 additions and 1 deletions

View File

@ -439,6 +439,8 @@ function interactive_configuration {
255) exit 0;;
esac
data=$(tempfile 2>/dev/null)
trap "rm -f $data" 0 1 2 5 15
dialog --backtitle "Freedombone Configuration" \
--radiolist "Choose Dynamic DNS provider:" 15 40 14 \
1 dyndns off \
@ -454,9 +456,13 @@ function interactive_configuration {
11 dynsip off \
12 sitelutions off \
13 dnsexit off \
14 changeip off
14 changeip off 2> $data
sel=$?
case $sel in
1) exit 0;;
255) exit 0;;
esac
case $(cat $data) in
1) DDNS_PROVIDER="default@dyndns.org";;
2) DDNS_PROVIDER="default@freedns.afraid.org";;
3) DDNS_PROVIDER="default@zoneedit.com";;