Linux-Hams archive - July 1997: Re: Baycom Linux & 16550A working!

Re: Baycom Linux & 16550A working!

Nuno Sucena Almeida ()
30 Jun 1997 08:32:16 GMT


: My rc.ax25 is like this ( cutted the portuguese comments :) now:

Unfortunatly the problem seems to be when i run the ifconfig
command. So i've changed the rc.ax25 and now it works all the time.
I've added a loop to my rc.ax25 script at the ifconfig command that
checks if the baycom driver is working by looking at /proc/interrupts,
like this:

echo "ifconfig (TCP/IP) :"
valor1=""
valor2=$valor1
maximo=60
numero=0
while [ "${valor2}" = "${valor1}" ];
do
/sbin/ifconfig ${device} down
/sbin/ifconfig ${device} ${ipaddr} netmask ${ipmask} broadcast ${ipbrod} mtu ${mtu} up
valor1=`grep baycom /proc/interrupts`
sleep 1
valor2=`grep baycom /proc/interrupts`
numero=$[ $numero + 1 ]
if [ "$numero" = "$maximo" ]; then break; fi
echo -e "$numero \c"
done
echo

-- 
Nuno Sucena
CT1FOX CQG9304 CQM9228                  Eng.Electrote'cnica FCTUC
To reply by e-mail use "slug" as user and "cygnus.ci.uc.pt" as domain.
My web page & PGP sig are located at the same place.