firedo

Members
  • Posts

    1
  • Joined

  • Last visited

firedo's Achievements

Noob

Noob (1/14)

0

Reputation

  1. Dynamix S3 Sleep - New Feature (patch included): Array Parity Check/Rebuild I needed a Sleep inhibitor for the array parity check/rebuild. As I don't want to use HDD spindown's and still want my PC to sleep automatically. I noticed that when going to Sleep Mode the running Array Parity Check was cancelled by the time the PC resumes from sleep. So, I made this modification to your plugin so that you can enable/disable (default: enable) a check that will prevent your PC from going to Sleep/Shutdown Mode when an Array Parity Check/Rebuild is currently running (or paused). The result of the last parity check doesn't matter to the script. Only that it has stopped or finished. I made these modifications to the plugin, feel free to use them. If you want, you can include some or parts of it in your plugin if you want. Others can apply it with the below command (after the plugin has started): cd / && patch -p1 < /path/to/patchfile And then restart the s3_sleep script: /usr/local/emhttp/plugins/dynamix.s3.sleep/scripts/rc.s3sleep restart Note: These commands must be added to the /boot/config/go script to make them persist after a reboot. An update to the plugin might make the patch not applicable anymore. dynamix.s3.sleep.parity_check.patch