summaryrefslogtreecommitdiff
path: root/net/djbdns-run/files/tinydns-showctl.sh
blob: 860c25febaf07dd2bce398b435fe0b6eb82ca4ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!@SH@
# (c) Copyright 2001-2002 Jonathan de Boyne Pollard. All rights reserved. "Moral" rights asserted.
# Permission is hereby granted to distribute this script unmodified.
for i do (
	cd "$i"
	echo "$i" | sed -e 's/./*/g'
	echo "$i"
	echo "$i" | sed -e 's/./*/g'
	echo
	echo '+++ Configuration options:'
	egrep '[A-Za-z0-9_]+=' run
	( cd env 2>/dev/null && grep "^" /dev/null * )
	echo
	echo '+++ Apices of those parts of the namespace that will be served up:'
	sed -ne '/^[Z.]/{s/^.//;s/:.*$//;s/\([^.]\)$/\1./;p;}' < root/data
	echo
); done