Mercurial > hg > anonet-resdb
comparison scripts/nameserver_autogen/dnsmasq_tld_conffile @ 177:70a066da663d draft
modified scripts/nameserver_autogen/dnsmasq_tld_conffile to avoid colors in ls outut :)
author | pragmo <pragmo@pragmo.ano> |
---|---|
date | Sun, 10 Oct 2010 08:59:44 +0000 |
parents | 9e6718a2d6c6 |
children | 750fe07d268e |
comparison
equal
deleted
inserted
replaced
172:bcc2cb53a853 | 177:70a066da663d |
---|---|
6 # using the conf-file=path-to-this-file statement. | 6 # using the conf-file=path-to-this-file statement. |
7 # | 7 # |
8 | 8 |
9 sh scripts/check_db_safety || exit 1 | 9 sh scripts/check_db_safety || exit 1 |
10 | 10 |
11 for a in $(ls db/ip/); do | 11 |
12 for b in $(ls db/ip/${a}); do | 12 LS="ls --color=never" |
13 for c in $(ls db/ip/${a}/${b}); do | 13 |
14 for a in $($LS db/ip/); do | |
15 for b in $($LS db/ip/${a}); do | |
16 for c in $($LS db/ip/${a}/${b}); do | |
14 if [ -d db/ip/${a}/${b}/${c}/ns/ ]; then | 17 if [ -d db/ip/${a}/${b}/${c}/ns/ ]; then |
15 for ns in $(cat db/ip/${a}/${b}/${c}/ns/*); do | 18 for ns in $(cat db/ip/${a}/${b}/${c}/ns/*); do |
16 A1=$(scripts/hex2dec ${a}) | 19 A1=$(scripts/hex2dec ${a}) |
17 B1=$(scripts/hex2dec ${b}) | 20 B1=$(scripts/hex2dec ${b}) |
18 C1=$(scripts/hex2dec ${c}) | 21 C1=$(scripts/hex2dec ${c}) |
24 done | 27 done |
25 done | 28 done |
26 | 29 |
27 echo | 30 echo |
28 | 31 |
29 for tld in $(ls db/dom/); do | 32 for tld in $($LS db/dom/); do |
30 for domain in $(ls db/dom/${tld}/); do | 33 for domain in $($LS db/dom/${tld}/); do |
31 for ns in $(cat db/dom/${tld}/${domain}/ns/*); do | 34 for ns in $(cat db/dom/${tld}/${domain}/ns/*); do |
32 STR="server=/${domain}.${tld}/${ns}" | 35 STR="server=/${domain}.${tld}/${ns}" |
33 echo $STR | 36 echo $STR |
34 done; | 37 done; |
35 done; | 38 done; |