changeset 180:9d74bc7d704f draft

Merge branch 'master' of git://git1.somerandomnick.ano
author pragmo <pragmo@pragmo.ano>
date Wed, 13 Oct 2010 19:49:49 +0000
parents a7318a68e323 (diff) 8d6f8d29d931 (current diff)
children 91a0f3fd54b7
files
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/nameserver_autogen/dnsmasq_tld_conffile	Wed Oct 13 21:37:37 2010 +0200
+++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile	Wed Oct 13 19:49:49 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