#!/bin/bash mkdir -p /etc/smart || exit 1 touch /etc/smart/config || exit 1 rm /etc/cron.hourly/syn3-smartcheck 2>/dev/null #create cronjob if ! crontab -l | grep syn3-smartcheck; then crontab -l > /tmp/$$.cron || exit 1 echo '* * * * * /usr/bin/nice /sbin/syn3-smartcheck' >> /tmp/$$.cron || exit 1 cat /tmp/$$.cron | crontab - || exit 1 rm /tmp/$$.cron fi