aboutsummaryrefslogtreecommitdiffstats
path: root/config/sshdcond
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-03 14:38:51 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-03 14:38:51 +0200
commit1a9a0869d62eb179fa65dcd714675d6e17bc20e1 (patch)
treefa254447fc4351c7828e21e8d25de1304d2d806b /config/sshdcond
parentd58b7456a2ebb015b757a26bc6147bd663bdbd13 (diff)
downloadpfsense-packages-1a9a0869d62eb179fa65dcd714675d6e17bc20e1.tar.gz
pfsense-packages-1a9a0869d62eb179fa65dcd714675d6e17bc20e1.tar.bz2
pfsense-packages-1a9a0869d62eb179fa65dcd714675d6e17bc20e1.zip
sshdcond.inc - fix boot check to use platform_booting()
Diffstat (limited to 'config/sshdcond')
-rw-r--r--config/sshdcond/sshdcond.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/config/sshdcond/sshdcond.inc b/config/sshdcond/sshdcond.inc
index b4d8aa16..ea3030a9 100644
--- a/config/sshdcond/sshdcond.inc
+++ b/config/sshdcond/sshdcond.inc
@@ -68,10 +68,8 @@ function sshdcond_custom_php_write_config() {
global $g, $config, $pkg_interface;
/* Detect boot process, do nothing during boot. */
- if ($g['booting']) {
- if ($pkg_interface == "console") {
+ if (platform_booting()) {
return;
- }
}
conf_mount_rw();