/dev/null | grep -v '2026.05.02a') # Create plugin directory if needed mkdir -p /boot/config/plugins/deadman-switch mkdir -p /boot/config/plugins/deadman-switch/logs ]]> https://github.com/dereckhall/unraid-deadmans-switch/releases/download/2026.05.02a/deadman-switch-2026.05.02a-noarch-1.txz 42177db1e6202b75c7e794c496d6ea7c8a7d29f978c1cc77aceeee3c25e78900 /dev/null # Create cron file in plugin config dir (Unraid's update_cron reads *.cron from here) echo "0 * * * * /usr/local/emhttp/plugins/deadman-switch/scripts/check.sh >> /boot/config/plugins/deadman-switch/logs/cron.log 2>&1" > /boot/config/plugins/deadman-switch/deadman-switch.cron # Remove legacy cron file if present (old versions wrote directly to /etc/cron.d/) rm -f /etc/cron.d/deadman-switch # Regenerate system crontab /usr/local/sbin/update_cron # Run install script (initializes config/state if needed, pass version since PLG isn't written yet) /usr/local/emhttp/plugins/deadman-switch/scripts/install.sh "2026.05.02a" echo "" echo "----------------------------------------------------" echo " deadman-switch has been installed." echo " Version: 2026.05.02a" echo "----------------------------------------------------" echo "" ]]> /dev/null # Remove cron file and regenerate system crontab rm -f /boot/config/plugins/deadman-switch/deadman-switch.cron rm -f /etc/cron.d/deadman-switch /usr/local/sbin/update_cron # Remove the package removepkg deadman-switch 2>/dev/null # Remove plugin files from RAM rm -rf /usr/local/emhttp/plugins/deadman-switch echo "" echo "----------------------------------------------------" echo " deadman-switch has been removed." echo " Config preserved at /boot/config/plugins/deadman-switch/" echo " Delete that directory manually for a clean removal." echo "----------------------------------------------------" echo "" ]]>