aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/create_region.sh
diff options
context:
space:
mode:
Diffstat (limited to 'create_region.sh')
-rwxr-xr-xcreate_region.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/create_region.sh b/create_region.sh
index 33257fd..0cd898d 100755
--- a/create_region.sh
+++ b/create_region.sh
@@ -30,19 +30,19 @@ then
30 echo "WARNING setting the Location to $LOCATION, this may not be what you want." 30 echo "WARNING setting the Location to $LOCATION, this may not be what you want."
31fi 31fi
32 32
33# Here we make use of an external IP finding service. Careful, it may move.
34# We later reuse the same IP for the default URL, coz that should work at least.
35if [ "x$IP" = "x" ] 33if [ "x$IP" = "x" ]
36then 34then
37 # 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP. 35 # 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP.
38 IP=$(wget -q http://automation.whatismyip.com/n09230945.asp -O -) 36 IP="0.0.0.0"
39 echo "WARNING setting the InternalAddress to $IP, this may not be what you want." 37 echo "WARNING setting the InternalAddress to $IP, this may not be what you want."
40 echo " 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP." 38# echo " 0.0.0.0 will work for a single sim per physical machine, otherwise we need the real internal IP."
39# According to the OpenSim docs, 0.0.0.0 means to listen on all NICs the machine has, which should work fine.
41fi 40fi
42 41
42# Here we make use of an external IP finding service. Careful, it may move.
43if [ "x$URL" = "x" ] 43if [ "x$URL" = "x" ]
44then 44then
45 URL=$IP # URL is best (without the HTTP://), but IP (e.g. 88.109.81.55) works too. 45 URL=$(wget -q http://automation.whatismyip.com/n09230945.asp -O -) # URL is best (without the HTTP://), but IP (e.g. 88.109.81.55) works too.
46 echo "WARNING setting the ExternalHostName to $URL, this may not be what you want." 46 echo "WARNING setting the ExternalHostName to $URL, this may not be what you want."
47fi 47fi
48 48