aboutsummaryrefslogtreecommitdiffstats
path: root/config/autoconfigbackup
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-09-16 13:23:06 +0200
committerdoktornotor <notordoktor@gmail.com>2015-09-16 13:23:06 +0200
commit91008d77d35ef87e54293e852622edd201392c85 (patch)
tree9a3bd338b28bc670bc39763b6e743be27e94758e /config/autoconfigbackup
parentc832ce3548177fcca2cc9967a5e343ce0de04145 (diff)
downloadpfsense-packages-91008d77d35ef87e54293e852622edd201392c85.tar.gz
pfsense-packages-91008d77d35ef87e54293e852622edd201392c85.tar.bz2
pfsense-packages-91008d77d35ef87e54293e852622edd201392c85.zip
Use pfSense 2.1.x compatible boot check
Diffstat (limited to 'config/autoconfigbackup')
-rw-r--r--config/autoconfigbackup/autoconfigbackup.inc8
1 files changed, 6 insertions, 2 deletions
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;
}