summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-27 08:42:17 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-27 08:42:17 +0100
commitbf635e7dcf83942e755bfcff11a9fe329fbec60c (patch)
treec9fe3b28b892abf1beeb8bca9e451885b8102e20 /etc/inc
parente546d2d1aa5d7bade9ce801fec75f11bf684c6ae (diff)
downloadpfsense-bf635e7dcf83942e755bfcff11a9fe329fbec60c.zip
pfsense-bf635e7dcf83942e755bfcff11a9fe329fbec60c.tar.gz
Optimize
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/globals.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc
index 1bd832b..b613a90 100644
--- a/etc/inc/globals.inc
+++ b/etc/inc/globals.inc
@@ -168,12 +168,9 @@ if (file_exists("/etc/inc/globals_override.inc"))
function platform_booting() {
global $g;
- if (file_exists("{$g['varrun_path']}/booting"))
+ if ($g['booting'] || file_exists("{$g['varrun_path']}/booting"))
return true;
- if ($g['booting'])
- return true;
-
return false;
}
OpenPOWER on IntegriCloud