This repository has been archived on 2020-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
kernelcheck/install
2017-04-03 19:54:00 +02:00

11 lines
472 B
Bash
Executable File

#!/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"