summaryrefslogtreecommitdiff
path: root/dynsrv.sh
diff options
context:
space:
mode:
authorvenaas <venaas>2008-05-30 12:52:40 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-05-30 12:52:40 +0000
commitc62df2e2a4797482cb2247400d6ae4830df25a3d (patch)
treed9b8c0580531b36244f913a7407ed49e49a669ff /dynsrv.sh
parent405ae6c9f97d0e481c0e7f2792e7f7be6abe1b26 (diff)
some gconfig improvements, made proxy accept server config from external program
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@266 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'dynsrv.sh')
-rwxr-xr-xdynsrv.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/dynsrv.sh b/dynsrv.sh
index be37601..1232fc2 100755
--- a/dynsrv.sh
+++ b/dynsrv.sh
@@ -1,2 +1,5 @@
#! /bin/sh
-host -t srv _radsec._tcp.$1|cut -d\ -f8
+host=`host -t srv _radsec._tcp.$1|cut -d\ -f8`
+echo "server $1-$host {"
+echo " host $host"
+echo "}"