perl-5.22
Last change
on this file since 5160d62 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
|
Rev | Line | |
---|
[c5c522c] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | mkdir -p /etc/smart || exit 1 |
---|
| 4 | touch /etc/smart/config || exit 1 |
---|
| 5 | |
---|
| 6 | rm /etc/cron.hourly/syn3-smartcheck 2>/dev/null |
---|
| 7 | |
---|
| 8 | #create cronjob |
---|
| 9 | if ! 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 |
---|
| 14 | fi |
---|
| 15 | |
---|
Note: See
TracBrowser
for help on using the repository browser.