summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-29 22:03:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-29 22:03:56 +0000
commit58af5941527bcea30718ddbc0f4a92847a319427 (patch)
tree829269a9d1a3ef354e3c45624373c4c71c41e934 /etc
parent5f9bcd7acb8a39a0dae15e2be26bb9ed8afcc790 (diff)
downloadpfsense-58af5941527bcea30718ddbc0f4a92847a319427.zip
pfsense-58af5941527bcea30718ddbc0f4a92847a319427.tar.gz
PPPoE automatic disconnect MFC
Submitted-by: DSH Really, really, really wanted by: Hoba Commit #1 of #2
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 28b7f16..557fdd2 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1238,6 +1238,12 @@ EOD;
return 0;
}
+function interfaces_wan_pppoe_restart() {
+ interfaces_wan_pppoe_down();
+ sleep(1);
+ interfaces_wan_pppoe_up();
+}
+
function interfaces_wan_pppoe_down() {
global $g;
sigkillbypid("{$g['varrun_path']}/mpd.pid", "SIGUSR2");
@@ -1358,6 +1364,12 @@ EOD;
return 0;
}
+function interfaces_wan_pptp_restart() {
+ interfaces_wan_pptp_down();
+ sleep(1);
+ interfaces_wan_pptp_up();
+}
+
function interfaces_wan_pptp_down() {
global $g;
sigkillbypid("{$g['varrun_path']}/mpd.pid", "SIGUSR2");
OpenPOWER on IntegriCloud