Update parity_control to latest commands for pause and resume

This commit is contained in:
bergware
2022-06-11 14:07:04 +02:00
parent 33e099ee54
commit a1a886755f
+2 -2
View File
@@ -25,13 +25,13 @@ if (mdstat('mdResyncPos')>0 && substr(mdstat('mdResyncAction'),0,7)=='check P')
if (mdstat('mdResync')>0) {
if (!file_exists($stamps)) file_put_contents($stamps,mdstat('sbSynced'));
file_put_contents($stamps,','.time(),FILE_APPEND);
exec("$mdcmd nocheck pause");
exec("$mdcmd cmdCheckPause");
}
break;
case 'resume':
if (mdstat('mdResync')==0) {
file_put_contents($stamps,','.time(),FILE_APPEND);
exec("$mdcmd check resume");
exec("$mdcmd cmdCheckResume");
}
break;
}