# HG changeset patch # User pragmo # Date 1286701184 0 # Node ID 70a066da663daf9dccbd5cd79da07e7b3b05a77d # Parent bcc2cb53a853901dcd67dab632bf709eea9b777a modified scripts/nameserver_autogen/dnsmasq_tld_conffile to avoid colors in ls outut :) diff -r bcc2cb53a853 -r 70a066da663d scripts/nameserver_autogen/dnsmasq_tld_conffile --- a/scripts/nameserver_autogen/dnsmasq_tld_conffile Sun Oct 10 06:46:52 2010 +0000 +++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile Sun Oct 10 08:59:44 2010 +0000 @@ -8,9 +8,12 @@ sh scripts/check_db_safety || exit 1 -for a in $(ls db/ip/); do - for b in $(ls db/ip/${a}); do - for c in $(ls db/ip/${a}/${b}); do + +LS="ls --color=never" + +for a in $($LS db/ip/); do + for b in $($LS db/ip/${a}); do + for c in $($LS db/ip/${a}/${b}); do if [ -d db/ip/${a}/${b}/${c}/ns/ ]; then for ns in $(cat db/ip/${a}/${b}/${c}/ns/*); do A1=$(scripts/hex2dec ${a}) @@ -26,8 +29,8 @@ echo -for tld in $(ls db/dom/); do - for domain in $(ls db/dom/${tld}/); do +for tld in $($LS db/dom/); do + for domain in $($LS db/dom/${tld}/); do for ns in $(cat db/dom/${tld}/${domain}/ns/*); do STR="server=/${domain}.${tld}/${ns}" echo $STR