Easy PPP installation
Please help me with testing some autodetection-stuff. Just write the
lines below to a file and execute it while no other programs access the
modem (e.g. PPP/SLIP/minicom etc). Requires root-privileges or other
read/write access to the "/dev/cua"-devices.
Thanks in advance
Winfried
#!/bin/sh
for i in 0 1 2 3
do
if (chat -t 5 "" ATZ OK "" > /dev/cua$i < /dev/cua$i)
then
echo "Modem on cua$i = COM$[$i+1] under DOS"
MODEM=/dev/cua$i
else
echo "No Modem found on cua$i"
fi
done
chat -t 5 ABORT 28800 \
ABORT 14400 \
ABORT 9600 \
ABORT 2400 \
ABORT 1200 \
"" ATI NEVER "" > $MODEM < $MODEM
case $? in
3)
echo "timeout - couldn't determine speed" ;;
4)
echo "Modem speed: 28800 Baud" ;;
5)
echo "Modem speed: 14400 Baud" ;;
6)
echo "Modem speed: 9600 Baud" ;;
7)
echo "Modem speed: 2400 Baud" ;;
8)
echo "Modem speed: 1200 Baud" ;;
esac
echo " "
echo "Please mail the results to winni@elfi.mi.uni-koeln.de"
echo " "
echo "Include the brand name of your modem and a screenshot which"
echo "demonstrates how you connect to your IP-Provider."
echo "(If visible, remove the password before sending)"
echo " "
echo "Thanks in advance"
echo "Winfried"
echo " "
Reply to: