#!/bin/sh
#
if ! ifconfig | grep ppp0 > /dev/null ; then
echo "ppp down"
fi
I don't see the need for another file out there
-----Original Message-----
From: Steve Sutton <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, October 15, 1998 9:54 AM
Subject: Suggestion
>Okie, I've got a little suggestion, that I haven't got time (or I'm too
>lazy) to implement myself.
>How about having diald create an empty file, when the link is up (eg.
>/etc/diald-link-up, so that we can script on the link status eg:-
>
>if [ -r /etc/diald-link-up ]
>then
> /usr/sbin/sendmail -q
>fi
>
>This is something that I would certainly find useful. At the moment, I
>can do this, based on the ppp0.pid, in /var/run, but this is a bit of a
>hack, since not everyone uses ppp, and consistent behaviour would be
>'nice'
>
>While I'm here, something that might be useful for your FAQ - well, it
>would have helped me :) :-
>
>Q: Sending mail with Pine brings up the link. How do I prevent this?
>
>A: Actually, it is not pine that brings the link up, it is (if you use it)
>sendmail doing a DNS lookup. You can prevent this, by using 'ignore' on
>domain requests, in your filter. This is not ideal, since it prevents
>other DNS lookups from bringing the link up. An alternative is to make
>pine tell sendmail to defer lookups until the queue is run.
>
>To achieve this, edit the os-xxx.h, in <pine-src-root>/pine/osdep/
>you probably have -odb, somewhere in your SENDMAILFLAGS string. change
>this to -odd (or add it if you have nothing like this there). Recompile
>pine. Er...that's it!
>
>Note: sendmail is usually started (at boot time) to run the queue quite
>frequently (typically every 15 minutes). You may want to change this to a
>higher value. Search your boot scripts for the command that invokes
>sendmail, an replace the -q15m (example) with -qxxz (where xx is the time,
>and z is the units 'm' for minutes 'h' for hours 'd' for days). This is
>particularly nice, because the mere act of running the queue should bring
>up the link (if you 'accept' domain packets), on a regular basis and send
>your mail if you have any.
>
>--
>Steve Sutton [EMAIL PROTECTED] "# I caused a major war, just by talking"
>http://www.etheral.demon.co.uk (PGP key avail.) [EMAIL PROTECTED]
> All opinions expressed are my own, and not representitive of
> The British Computer Society, or Demon Internet Ltd.
>
>
>-
>To unsubscribe from this list: send the line "unsubscribe linux-diald" in
>the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]