Listing 4
mesg n
stty -echo
#retval=$?
tty_now=`tty`;
if [ "$tty_now" = "/dev/ttyC6" ];
then
/usr/sbin/pppd -detach modem passive crtscts 206.156.217.10:206.156.217.31
fi
if [ "$tty_now" = "/dev/ttyC7" ];
then
/usr/sbin/pppd -detach modem passive crtscts 206.156.217.10:206.156.217.32
fi
if [ "$tty_now" = "/dev/ttyC8" ];
then
/usr/sbin/pppd -detach modem passive crtscts 206.156.217.10:206.156.217.33
fi
if [ "$tty_now" = "/dev/ttyC9" ];
then
/usr/sbin/pppd -detach modem passive crtscts 206.156.217.10:206.156.217.34
fi
if [ "$tty_now" = "/dev/ttyC10" ];
then
/usr/sbin/pppd -detach modem passive crtscts 206.156.217.10:206.156.217.35
fi
exit
Copyright © 1994 - 2019 Linux Journal. All rights reserved.