> Index: preconfig.sh > =================================================================== > RCS file: /cvsroot/freenet/freenet/scripts/preconfig.sh,v > retrieving revision 1.4 > retrieving revision 1.5 > diff -C2 -r1.4 -r1.5 > *** preconfig.sh 21 Feb 2002 23:04:59 -0000 1.4 > --- preconfig.sh 22 Feb 2002 15:18:36 -0000 1.5 > *************** > *** 6,14 **** > > # Pre-determine IP address > ! echo ipAddress=$(hostname).$(hostname -d) >> freenet.conf > > if [ "$RANDOM" ] > then > ! let DEFLP=($RANDOM%30000)+2000 > else > echo "no random in shell, enter a FNP port number + <ENTER>" > --- 6,16 ---- > > # Pre-determine IP address > ! IP=`hostname`; > ! echo $IP | grep [\.] || IP=`hostname`.`hostname -d` > ! echo ipAddress=$IP >> freenet.conf > > if [ "$RANDOM" ] > then > ! let DEFLP= $RANDOM % 30000 + 2000 > else > echo "no random in shell, enter a FNP port number + <ENTER>"
Why does this script try to provide a random number for the FNP port? The node already does that. -tc -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 240 bytes Desc: not available URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20020222/6f45f33c/attachment.pgp>
