diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-03-10 19:13:00 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-03-10 19:13:00 +0000 |
commit | 8e21cbb8b243f865f0710dae230141a73139a92b (patch) | |
tree | 1ff979f0237de5bc0fe40c8d194c2e749a90dcd6 /etc | |
parent | 010ae92efb3a3c6c7009eb6832f889458af3ce03 (diff) | |
download | pfsense-8e21cbb8b243f865f0710dae230141a73139a92b.zip pfsense-8e21cbb8b243f865f0710dae230141a73139a92b.tar.gz |
If OpenBGPD is installed, allow the selection of BGP as our
default gateway.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 3 |
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. |