summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2010-04-11 09:56:52 +0700
committergnhb <gnoahb@gmail.com>2010-04-11 09:56:52 +0700
commitb4974cf4809b27c995891ff8386564fe10095ae6 (patch)
tree779d01b5cb120f11fe0c71b56878d23422493e23 /etc
parente4b8da19a4075dcb05b1cc19190395209770e1d4 (diff)
downloadpfsense-b4974cf4809b27c995891ff8386564fe10095ae6.zip
pfsense-b4974cf4809b27c995891ff8386564fe10095ae6.tar.gz
Make PPP redial when the connection is dropped. Also, fix PPP uptime display.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc2
-rw-r--r--etc/inc/pfsense-utils.inc2
2 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 8bf674f..b5e778b 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -969,6 +969,8 @@ EOD;
$mpdconf .= <<<EOD
create link static lnk{$interface} modem
+ set link keep-alive 10 60
+ set link max-redial 0
set link disable chap pap
set link accept chap pap eap
set link enable no-orig-auth
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 2876265..dd7c4de 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1309,7 +1309,7 @@ function get_interface_info($ifdescr) {
if (empty($dev))
break;
if (file_exists("/dev/{$dev}")) {
- if (file_exists("{$g['varrun_path']}/ppp_{$if}.pid") && file_exists("{$g['varetc_path']}/mpd_{$if}.query")) {
+ if (file_exists("{$g['varrun_path']}/ppp_{$if}.pid")) {
$ifinfo['pppinfo'] = "{$ifinfo['if']}";
$sec = trim(`/usr/local/sbin/ppp-uptime.sh {$ifinfo['if']}`);
$ifinfo['ppp_uptime'] = convert_seconds_to_hms($sec);
OpenPOWER on IntegriCloud