]> git.openstreetmap.org Git - chef.git/blob - cookbooks/hardware/templates/default/smartd-mailer.erb
Report correct size for directly connected diaks
[chef.git] / cookbooks / hardware / templates / default / smartd-mailer.erb
1 #!/bin/sh
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 case "$SMARTD_DEVICETYPE" in
6     areca,*) [ "$SMARTD_FAILTYPE" = "FailedOpenDevice" ] && exit 0
7 esac
8
9 exec mail -s "$SMARTD_SUBJECT" $SMARTD_ADDRESS <<EOF
10 $SMARTD_FULLMESSAGE
11 EOF