summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-11 20:28:13 (GMT)
committerErmal <eri@pfsense.org>2014-11-11 20:28:13 (GMT)
commite16f6d03a790e0f8b4f8abaf770ae00c32381b57 (patch)
treed8096bce37fb5c72474e55e22f0d495dc0b60566
parent63ba47297f8e59e24ff83bd5bafd3eca32f600a6 (diff)
downloadunivnautes-e16f6d03a790e0f8b4f8abaf770ae00c32381b57.zip
univnautes-e16f6d03a790e0f8b4f8abaf770ae00c32381b57.tar.gz
univnautes-e16f6d03a790e0f8b4f8abaf770ae00c32381b57.tar.bz2
Do not do this during boot
-rw-r--r--etc/inc/interfaces.inc22
1 files changed, 12 insertions, 10 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 4046d24..ed85f32 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -995,16 +995,18 @@ function interface_gif_configure(&$gif, $gifkey = "") {
else
log_error(gettext("could not bring gifif up -- variable not defined"));
- $iflist = get_configured_interface_list();
- foreach($iflist as $ifname) {
- if($config['interfaces'][$ifname]['if'] == $gifif) {
- if(get_interface_gateway($ifname)) {
- system_routing_configure($ifname);
- break;
- }
- if(get_interface_gateway_v6($ifname)) {
- system_routing_configure($ifname);
- break;
+ if (!$g['booting']) {
+ $iflist = get_configured_interface_list();
+ foreach($iflist as $ifname) {
+ if($config['interfaces'][$ifname]['if'] == $gifif) {
+ if(get_interface_gateway($ifname)) {
+ system_routing_configure($ifname);
+ break;
+ }
+ if(get_interface_gateway_v6($ifname)) {
+ system_routing_configure($ifname);
+ break;
+ }
}
}
}