]>
git.ipfire.org Git - people/stevee/ipfire-2.x.git/blob - src/ppp/ip-down
5 # This code is distributed under the terms of the GPL
7 # (c) The SmoothWall Team
9 # $Id: ip-down,v 1.3.2.9 2005/01/26 12:23:26 riddles Exp $
13 require 'CONFIG_ROOT/general-functions.pl';
15 &General
::log("PPP has gone down on $ARGV[0]");
19 unlink "${General::swroot}/red/active";
20 system "/etc/rc.d/rc.updatered";
22 # Beep when ppp goes up or down. Silence if 'nobeeps' file exists.
23 if ( ! -e
"${General::swroot}/ppp/nobeeps") {
24 system('/usr/bin/beep','-l 75', '-f 880', '-n', '-l 75', '-f 440');
27 if ( -e
"${General::swroot}/red/keepconnected") {
28 if ( system ('/bin/ps ax | /bin/grep -q "[r]c.connectioncheck reconnect"') ) {
29 system ('/etc/rc.d/rc.connectioncheck reconnect &');
31 &General
::log ('rc.connectioncheck reconnect already running');