aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-11 08:35:14 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-11 08:35:14 +0200
commit8db0d25c53d4d49e6740eed2d7bb24ddecc48849 (patch)
treeb73de7d3480b4150592226d07cef19191a4f6e8e
parent57f1f5ab8e8c5b9e3446b1c1f773b52248e7f9a1 (diff)
downloadpfsense-packages-8db0d25c53d4d49e6740eed2d7bb24ddecc48849.tar.gz
pfsense-packages-8db0d25c53d4d49e6740eed2d7bb24ddecc48849.tar.bz2
pfsense-packages-8db0d25c53d4d49e6740eed2d7bb24ddecc48849.zip
sarg - 2.1.x compatible boot check
-rw-r--r--config/sarg/sarg.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/sarg/sarg.inc b/config/sarg/sarg.inc
index 446b5f82..85410560 100644
--- a/config/sarg/sarg.inc
+++ b/config/sarg/sarg.inc
@@ -192,7 +192,11 @@ function sync_package_sarg() {
global $config, $g, $sarg_proxy;
// detect boot process
- if (platform_booting()) {
+ if (function_exists("platform_booting")) {
+ if (platform_booting()) {
+ return;
+ }
+ } elseif ($g['booting']) {
return;
}