summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkolla <kolla>2009-02-16 08:54:58 +0000
committerkolla <kolla@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2009-02-16 08:54:58 +0000
commit9010bd05f750a5643927bac9dfac70ec888fff1f (patch)
tree8f6b240021712b6bdcfdabd686d6a7369b7dbff0
parent282f45736512d6c2109f1b80b74740fdc7afaf98 (diff)
Bruk bash
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@475 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rwxr-xr-xradsec-dynsrv.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/radsec-dynsrv.sh b/radsec-dynsrv.sh
index 3daef6d..7a74b6d 100755
--- a/radsec-dynsrv.sh
+++ b/radsec-dynsrv.sh
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# Example script!
# This script looks up radsec srv records in DNS for the one
@@ -22,7 +22,7 @@ dig_it() {
${DIGCMD} +short srv _radsec._tcp.${REALM} | sort -k1 |
while read line ; do
set $line ; PORT=$3 ; HOST=$4
- echo "\thost ${HOST%.}:${PORT}"
+ echo -e "\thost ${HOST%.}:${PORT}"
done
}
@@ -30,7 +30,7 @@ host_it() {
${HOSTCMD} -t srv _radsec._tcp.${REALM} | sort -k5 |
while read line ; do
set $line ; PORT=$7 ; HOST=$8
- echo "\thost ${HOST%.}:${PORT}"
+ echo -e "\thost ${HOST%.}:${PORT}"
done
}
@@ -44,7 +44,7 @@ else
fi
if test -n "${SERVERS}" ; then
- echo "server dynamic_radsec.${REALM} {\n${SERVERS}\n\ttype TLS\n}"
+ echo -e "server dynamic_radsec.${REALM} {\n${SERVERS}\n\ttype TLS\n}"
exit 0
fi