aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-11 08:21:45 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-11 08:21:45 +0200
commit5258cd801edee2afe9b1bceacb4c7cfca3dc9357 (patch)
treea72fe19bf8e771ff0ca69d9fabe7795e57b2fcbd
parentd8a8828ab693a3db1ac2f93b8b52f8816c3866d0 (diff)
downloadpfsense-packages-5258cd801edee2afe9b1bceacb4c7cfca3dc9357.tar.gz
pfsense-packages-5258cd801edee2afe9b1bceacb4c7cfca3dc9357.tar.bz2
pfsense-packages-5258cd801edee2afe9b1bceacb4c7cfca3dc9357.zip
sshdcond - 2.1.x compatible boot check
-rw-r--r--config/sshdcond/sshdcond.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/sshdcond/sshdcond.inc b/config/sshdcond/sshdcond.inc
index c7c19291..9c3a8bb9 100644
--- a/config/sshdcond/sshdcond.inc
+++ b/config/sshdcond/sshdcond.inc
@@ -62,7 +62,11 @@ function sshdcond_custom_php_write_config() {
global $g, $config, $pkg_interface;
/* Detect boot process, do nothing during boot. */
- if (platform_booting()) {
+ if (function_exists("platform_booting")) {
+ if (platform_booting()) {
+ return;
+ }
+ } elseif ($g['booting']) {
return;
}