From 91008d77d35ef87e54293e852622edd201392c85 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Wed, 16 Sep 2015 13:23:06 +0200 Subject: Use pfSense 2.1.x compatible boot check --- config/autoconfigbackup/autoconfigbackup.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config/autoconfigbackup') diff --git a/config/autoconfigbackup/autoconfigbackup.inc b/config/autoconfigbackup/autoconfigbackup.inc index 64a16101..ebd9dc08 100644 --- a/config/autoconfigbackup/autoconfigbackup.inc +++ b/config/autoconfigbackup/autoconfigbackup.inc @@ -74,7 +74,7 @@ function acb_custom_php_validation_command($post, &$input_errors) { } function acb_custom_php_resync_config_command() { - if (is_file("/cf/conf/lastpfSbackup.txt") { + if (is_file("/cf/conf/lastpfSbackup.txt")) { conf_mount_rw(); unlink("/cf/conf/lastpfSbackup.txt"); conf_mount_ro(); @@ -109,7 +109,11 @@ function test_connection($post) { global $savemsg, $config, $g; // Do nothing when booting - if (platform_booting()) { + if (function_exists("platform_booting")) { + if (platform_booting()) { + return; + } + } elseif ($g['booting']) { return; } -- cgit v1.2.3