|
ON4HU > XNET 27.01.05 13:22z 72 Lines 1904 Bytes #999 (0) @ EU
BID : 2235_ON4HU
Read: GUEST SP1LOP SP6FIG
Subj: need XNET script
Path: SR1BSZ<SR6BBA<OK0PCC<OK0PPR<OK0PPL<DB0RES<DK0WUE<7M3TJZ<ON4HU
Sent: 050127/1318Z @:ON4HU.MOU.HT.BEL.EU #:2235 [Mouscron] $:2235_ON4HU
From: ON4HU@ON4HU.MOU.HT.BEL.EU
To : XNET@EU
Hello everybody
I am searching for script to detach and restart XNET partnet using static IP, ONLY curriously have more problem as dynamic IP partner
If you have any idea please drop me an message
Best regard and thank you
Vy73S Andr‚
http://on4hu.be
ftp://on4hu.be
#-----------------------------------------------------------
#below is my sample sript that work nicely with Dynamic IP
#
cd /usr/local/xnet
LOG=dynamic.log
UPDATE_FILE=UPDATE.NET
echo > $UPDATE_FILE
#
#
# **** START-OF-ENTRY ****
#
# entry for F6GGY :
#
HOST=f6ggy.dyndns.org
CALL=f6ggy-4
INTERFACE=ip2
PARAMS="axUDP 2 1 l93 d93"
#
#
# below this line parameters do not need to be changed !
#
CHECK_FILE=dynamic/$CALL.check
IP=`host $HOST 2>/dev/null | head -n 1 | awk '{print $4}'`
if [ "$IP" != "" ]; then
#
if test ! -e "$CHECK_FILE"
then echo "empty" > $CHECK_FILE
fi
#
if [ "$IP" != `cat $CHECK_FILE` ]; then
# IP is not the same as stored one, so update !
ec echo "$IP" > $CHECK_FILE
echo "detach $INTERFACE" >> $UPDATE_FILE
echo "attach $INTERFACE $PARAMS $IP" >> $UPDATE_FILE
#
echo "p 2 acon 1 ">> $UPDATE_FILE
echo "p 2 baud 64000 ">> $UPDATE_FILE
echo "p 2 dama 0 ">> $UPDATE_FILE
echo "p 2 dbaud 0 ">> $UPDATE_FILE
echo "p 2 duplex 1 ">> $UPDATE_FILE
echo "p 2 led 0 ">> $UPDATE_FILE
echo "p 2 mode 0 ">> $UPDATE_FILE
echo "p 2 name F6GGY-4 Link ">> $UPDATE_FILE
echo "p 2 persist 255 ">> $UPDATE_FILE
echo "p 2 quality 255 ">> $UPDATE_FILE
echo "p 2 reset 0 ">> $UPDATE_FILE
echo "p 2 slot 100 ">> $UPDATE_FILE
echo "p 2 t3 180000 ">> $UPDATE_FILE
echo "p 2 txdelay 1 ">> $UPDATE_FILE
echo "p 2 window 7 ">> $UPDATE_FILE
#
echo "IP of $CALL changed to $IP at `date` " >> $LOG
fi
#
fi
#
Read previous mail | Read next mail
| |