source: npl/overig/smartmontools/post.smartmontools

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 394 bytes
Line 
1#!/bin/bash
2
3mkdir -p /etc/smart || exit 1
4touch /etc/smart/config || exit 1
5
6rm /etc/cron.hourly/syn3-smartcheck 2>/dev/null
7
8#create cronjob
9if ! crontab -l | grep syn3-smartcheck; then
10        crontab -l > /tmp/$$.cron || exit 1
11        echo '* * * * * /usr/bin/nice /sbin/syn3-smartcheck' >> /tmp/$$.cron || exit 1
12        cat /tmp/$$.cron | crontab - || exit 1
13        rm /tmp/$$.cron
14fi
15
Note: See TracBrowser for help on using the repository browser.