diff --git a/plugins/dynamix/include/DefaultPageLayout.php b/plugins/dynamix/include/DefaultPageLayout.php
index 5c63f3810..7b5658426 100644
--- a/plugins/dynamix/include/DefaultPageLayout.php
+++ b/plugins/dynamix/include/DefaultPageLayout.php
@@ -371,7 +371,7 @@ $(function() {
for (var i=0,notice; notice=notices[i]; i++) addBannerWarning(" "+notice,false,true);
});
// check for flash offline / corrupted.
- $.post('/webGui/include/Report.php',{cmd:'sha256'},function(check){
+ $.post('/webGui/include/Report.php',{cmd:'config'},function(check){
if (check>0) addBannerWarning("=_('Your flash drive is corrupted or offline').'. '._('Post your diagnostics in the forum for help').'.'?> =_('See also here')?>");
});
});
diff --git a/plugins/dynamix/include/Report.php b/plugins/dynamix/include/Report.php
index 68c65a9c5..aca345cf3 100644
--- a/plugins/dynamix/include/Report.php
+++ b/plugins/dynamix/include/Report.php
@@ -12,13 +12,11 @@
?>
switch ($_POST['cmd']) {
-case 'sha256':
- $boot = "/boot";
- $check = "/var/tmp/check.sha256";
- $image = ['bzroot','bzimage']; // image files to check
- if (!file_exists($check)) foreach ($image as $file) file_put_contents($check,trim(file_get_contents("$boot/$file.sha256"))." $boot/$file\n",FILE_APPEND);
- passthru("sha256sum --status -c $check",$status);
- echo $status;
+case 'config':
+ $config = "/boot/config";
+ $files = ['disk','docker','domain','ident','share']; // config files to check
+ foreach ($files as $file) if (file_exists("$config/$file.cfg") && !$test=@parse_ini_file("$config/$file.cfg")) {echo 1; break;}
+ echo 0;
break;
case 'notice':
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';