#!/bin/sh
printf "Copying files..\n"
sudo cp kernelcheck /usr/local/sbin/kernelcheck
sudo cp notify_all /usr/local/sbin/notify_all
printf "Adding hourly service to cron scheduler..\n"
(sudo crontab -l; echo "@hourly /usr/local/sbin/kernelcheck" ) | sudo crontab -
printf "Enabling cronie scheduler..\n" # Let me know if you use something else, and enable manually.
sudo systemctl start cronie.service
sudo systemctl enable cronie.service
printf "Installation complete.\n"