Date: Tue, 22 Jan 2002 07:35:02 -0600 From: jacks@sage-american.com To: freebsd-questions@freebsd.org Subject: The ppp.linkup file Message-ID: <3.0.5.32.20020122073502.01831ca0@mail.sage-american.com>
next in thread | raw e-mail | index | archive | help
I run DSL on one machine using PPPoE via ppp on 4.4-stable using automaic DDIAL so that any disconnectes will reconnect. Of course, I would like to know when there are any connection breaks. For this purpose, there is a "ppp.linkup" file that is part of the distribution that says it will: ######################################################## # Example of ppp.linkup file # # This file is checked when ppp establishes a connection. # ppp searches the labels in this file as follows: # # 1) The label that matches the IP number assigned to our side. # # 2) The label specified on the command line to ppp. # 3) If no label has been found, use MYADDR if it exists. # ######################################################### Well, I have the following single command line place in this file to launch a script that tells me about any new reconnects, but it is not being run. The syntax is pretty crytic, but follows the same syntax of the one above it that is supposed to launch a sound file, but NADA.... ! /bin/sh /etc/ppp/linkup.sh Here's the examples in the file, plus my own command as per #2 above. pmdemand: #!bg /etc/ppp/ppp.etherup.pmdemand #! sh -c "cat /etc/ppp/linkup.au >/dev/audio" ! /bin/sh /etc/ppp/linkup.sh The "linkup.sh" is made executable and runs, so it should run okay if this thing would just work. Does anyone have a suggestion about why this ppp.linkup file is not running my script??? Thanks for any ideas. Best regards, Jack L. Stone, Server Admin =================================================== Sage-American http://www.sage-american.com jacks@sage-american.com "My center is giving way, my right is in retreat; ....situation excellent! ....I shall attack!" =================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20020122073502.01831ca0>