diff options
author | schmonz <schmonz@pkgsrc.org> | 2004-09-01 20:13:04 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2004-09-01 20:13:04 +0000 |
commit | 01f641147d5488738a52c720e75c0548e39e443a (patch) | |
tree | 4543eb5d58802ce626b33cafbdfdceef81ab91b7 /net/djbdns-run/files/dnscache-showctl.sh | |
parent | 84bca927105f1bc6ba588f27659526767c1ef7a4 (diff) | |
download | pkgsrc-01f641147d5488738a52c720e75c0548e39e443a.tar.gz |
Initial import of djbdns-run, a package that provides NetBSD-style
rc.d scripts (inspired by Bennett Todd's Linux init.d scripts) to
run djbdns services. It also includes Jonathan de Boyne Pollard's
dnscache-showctl and tinydns-showctl scripts.
Diffstat (limited to 'net/djbdns-run/files/dnscache-showctl.sh')
-rw-r--r-- | net/djbdns-run/files/dnscache-showctl.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/djbdns-run/files/dnscache-showctl.sh b/net/djbdns-run/files/dnscache-showctl.sh new file mode 100644 index 00000000000..693668f7949 --- /dev/null +++ b/net/djbdns-run/files/dnscache-showctl.sh @@ -0,0 +1,20 @@ +#!@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 '+++ Authorised client IP address prefixes:' + ls -1 root/ip + echo + echo '+++ Hardwired content server IP addresses:' + cd root/servers && grep "^" /dev/null * + echo +); done |