Subject: | |
From: | |
Reply To: | |
Date: | Tue, 21 Jan 1997 20:35:26 -0500 |
Content-Type: | TEXT/PLAIN |
Parts/Attachments: |
|
|
Clayton L. Hines ([log in to unmask]) wrote:
: However, yours is the second request I've seen today, so I think I'll go
: ahead and write one up, and ask someone to add it to the MUnet page
: < http://www.muohio.edu/munet/ >. It'll take me a couple days, so until
: then, here are some key files:
I don't know about you, but I hate getting dumped every five
hours. Here's a simple way to avoid that. I like using the lock file so
that if I'm using my modem for a non-ip chore, I won't be disturbed by the
script.
Also, I had to give chat 45 seconds of 'timeout' to get ppp
working reliably. Ick. Just how slow is this NDS server?
-----
#!/bin/sh
#
# A Chezy script that runs from cron to check for a lock file on my
# modem device, and if not found, run ppp again. You can change
# the string 'ttyS0' to whatever modem device you use ie. 'modem'.
# [log in to unmask]
#
if [ -f /var/lock/LCK..ttyS0 ]; then
touch /home/atp/ppplog # Not nessecary, but I like to
# know it's working.
else
/usr/sbin/ppp-on ; echo -n "Reconnected " >> ~/ppplog
date >> ~/ppplog # Lets you know when your connection
# was established.
fi
|
|
|