summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index cd1f0bb..96b592b 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -243,7 +243,7 @@ function parse_config($parse = false) {
global $g;
$lockkey = lock('config');
- if (filesize("{$g['conf_path']}/config.xml") == 0) {
+ if (!file_exists("{$g['conf_path']}/config.xml") || filesize("{$g['conf_path']}/config.xml") == 0) {
$last_backup = discover_last_backup();
if($last_backup) {
log_error("No config.xml found, attempting last known config restore.");
@@ -1314,4 +1314,4 @@ function set_device_perms() {
if($g['booting']) echo ".";
$config = parse_config();
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud