]> ###2023.10.01 - Fixed: Moronic mistake on my part ###2023.09.30 - Changed: Run update_cron at array start (fixes issue with OS 6.12.4) ###2023.03.02 - PHP8 Upgrades ###2023.02.20 - PHP8 Compliance ###2023.02.02 - PHP8 compliance ###2022.09.16 - Remove schedule icon missing on later versions of Unraid ###2021.03.10 - Permission fixes ###2021.02.16 - Detect SAS status if SAS spindown plugin installed (Thanks @doron) ###2020.10.21 - Compatibility Fixes ###2020.01.26 - Fixed: Only max 10 disks were allowed to be spun down ###2019.01.13 - Update Icon ###2018.10.19 - Fix Broken Pipe ###2017.11.23 - Reorganization as part of updates to CA proper ###2017.03.25 - Added in scheduling to force turbo mode off / on ###2017.03.24 - Fix Debug Mode logging not working when started from GUI ###2017.03.14 - Support a user script to force modes on a schedule (see support thread) ###2017.03.12a - Fix minor display aberration ###2017.03.12 - Initial Release ]]> # Remove old 'source' files rm -f $(ls /boot/config/plugins/&name;/&name;*.txz 2>/dev/null | grep -v '&version;') https://raw.github.com/&github;/master/archive/&name;-&version;-x86_64-1.txz &md5; array("pipe", "r"), // stdin is a pipe that the child will read from 1 => array("pipe", "w"), // stdout is a pipe that the child will write to 2 => array("file", "/tmp/error-output.txt", "a") // stderr is a file to write to ); proc_open("/usr/local/emhttp/plugins/ca.turbo/scripts/auto_turbo.php",$descriptorspec,$pipes); } ?> ]]> echo "" echo "----------------------------------------------------" echo " &name; has been installed." echo " Copyright 2017-2023, Andrew Zawadzki" echo " Version: &version;" echo "----------------------------------------------------" echo "" ]]> if [[ -e /tmp/ca.turbo/PID ]] then logger "Stopping CA Turbo Mode" PID=`cat /tmp/ca.turbo/PID` logger "Terminating $PID" kill $PID rm /tmp/ca.turbo/PID fi removepkg &name;-&version;-x86_64-1 rm -rf &plugdir; rm -rf /boot/config/plugins/&name;