summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
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