From 612926651db0c13fa9f45f58764b56ab132b211c Mon Sep 17 00:00:00 2001 From: Epoch Qwert Date: Tue, 9 Dec 2014 03:27:26 -0600 Subject: ident.sh to make ident queries easier to use in scripts. gopherd.sh changed to use new output of peerip. peerip changes to output peer's port on second line. httpd changed... I dunno what. AOEU and aoeu to help with playing with dvorak. --- nocompile/libexec/gopherd.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nocompile/libexec') diff --git a/nocompile/libexec/gopherd.sh b/nocompile/libexec/gopherd.sh index 0b87223..9d3ba5c 100755 --- a/nocompile/libexec/gopherd.sh +++ b/nocompile/libexec/gopherd.sh @@ -1,4 +1,5 @@ #!/bin/bash +export PATH=$PATH:/usr/local/bin #set these two variables if you have your server behind DMZ read -t 10 req base="$1" @@ -9,7 +10,7 @@ if grep -v "^${base}" <<< "${realpath}" > /dev/null;then echo ${realpath} exit 1 fi -myIP=$(/usr/local/bin/hop0 $(/usr/local/libexec/peerip)) +myIP=$(hop0 $(/usr/local/libexec/peerip | head -n1)) hostname=$(rdns ${myIP}) if [ ! "${hostname}" ]; then hostname=${myIP} -- cgit v1.2.3