Commit a8692ae0 authored by runge's avatar runge

one more tweak, start from disp 30

parent 569734f4
...@@ -122,7 +122,7 @@ elif uname | grep SunOS > /dev/null; then ...@@ -122,7 +122,7 @@ elif uname | grep SunOS > /dev/null; then
inuse=`netstat -an -f inet -P tcp | grep LISTEN | awk '{print $1}' | sed 's/^.*\.//'` inuse=`netstat -an -f inet -P tcp | grep LISTEN | awk '{print $1}' | sed 's/^.*\.//'`
fi fi
if [ "x$inuse" != "x" ]; then if [ "x$inuse" != "x" ]; then
try=5920 try=5930
while [ $try -lt 6000 ] while [ $try -lt 6000 ]
do do
if echo "$inuse" | grep -w $try > /dev/null; then if echo "$inuse" | grep -w $try > /dev/null; then
...@@ -137,7 +137,7 @@ fi ...@@ -137,7 +137,7 @@ fi
if [ "X$use" = "X" ]; then if [ "X$use" = "X" ]; then
# otherwise choose a "random" one: # otherwise choose a "random" one:
use=`date +%S` use=`date +%S`
use=`expr $use + 5920` use=`expr $use + 5930`
fi fi
# create the stunnel config file: # create the stunnel config file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment