diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-01-29 22:03:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-01-29 22:03:56 +0000 |
commit | 58af5941527bcea30718ddbc0f4a92847a319427 (patch) | |
tree | 829269a9d1a3ef354e3c45624373c4c71c41e934 /etc/inc | |
parent | 5f9bcd7acb8a39a0dae15e2be26bb9ed8afcc790 (diff) | |
download | pfsense-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/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 12 |
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"); |