summaryrefslogtreecommitdiff
path: root/dynsrv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dynsrv.sh')
-rwxr-xr-xdynsrv.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/dynsrv.sh b/dynsrv.sh
index 7adcbe0..d0810d6 100755
--- a/dynsrv.sh
+++ b/dynsrv.sh
@@ -1,5 +1,6 @@
#! /bin/sh
srv=`host -t srv _radsec._tcp.$1`
+# should do exit 1 or something if host command fails
host=`echo $srv|cut -d\ -f8`
port=`echo $srv|cut -d\ -f7`
echo "server $1-$host {"