summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-03-10 19:13:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-03-10 19:13:00 +0000
commit8e21cbb8b243f865f0710dae230141a73139a92b (patch)
tree1ff979f0237de5bc0fe40c8d194c2e749a90dcd6 /etc/inc/system.inc
parent010ae92efb3a3c6c7009eb6832f889458af3ce03 (diff)
downloadpfsense-8e21cbb8b243f865f0710dae230141a73139a92b.zip
pfsense-8e21cbb8b243f865f0710dae230141a73139a92b.tar.gz
If OpenBGPD is installed, allow the selection of BGP as our
default gateway.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 03adc04..0589134 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -253,7 +253,8 @@ function system_routing_configure() {
$interfacegw = $gateway['interface'];
}
}
- mwexec("/sbin/route add default " . escapeshellarg($gatewayip));
+ if($interfacegw <> "bgpd")
+ mwexec("/sbin/route add default " . escapeshellarg($gatewayip));
} else {
/* adding gateway for 1.2-style configs without the new
gateway setup configured.
OpenPOWER on IntegriCloud