diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-24 21:01:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-24 21:01:53 +0000 |
commit | 389741e5afef7b0e8e129000b0f48b673c5b5624 (patch) | |
tree | ea7e8fc31ffb98a686e60abbf698f0a3a2c5d285 /etc/inc | |
parent | 8ffd7b68d63ac79ac401543d7db90302d746ca27 (diff) | |
download | pfsense-389741e5afef7b0e8e129000b0f48b673c5b5624.zip pfsense-389741e5afef7b0e8e129000b0f48b673c5b5624.tar.gz |
MFC 7125
If ppp-linkdown script exists, add it to mpd for pptp and pppoe
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index a45a8db..14cb3aa 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -980,7 +980,17 @@ pppoe: set iface idle {$idle} set iface up-script /usr/local/sbin/ppp-linkup EOD; - + + /* Check for ppp-linkdown Script in /usr/local/sbin + * Create reference in mpd.conf + */ + if ( file_exists("/usr/local/sbin/ppp-linkdown") ){ + $mpdconf .= <<<EOD + set iface down-script /usr/local/sbin/ppp-linkdown + +EOD; + } + if (isset($pppoecfg['ondemand'])) { if (isset($pppoecfg['local-ip']) && isset($pppoecfg['remote-ip'])) { $mpdconf .= <<<EOD @@ -1112,6 +1122,16 @@ pptp: EOD; + /* Check for ppp-linkdown Script in /usr/local/sbin + * Create reference in mpd.conf + */ + if ( file_exists("/usr/local/sbin/ppp-linkdown") ){ + $mpdconf .= <<<EOD + set iface down-script /usr/local/sbin/ppp-linkdown + +EOD; + } + if (isset($pptpcfg['ondemand'])) { $mpdconf .= <<<EOD set iface addrs 10.0.0.1 10.0.0.2 |