smartmontools/smartdnotify

10 lines
212 B
Plaintext
Raw Normal View History

2011-02-17 16:04:48 +00:00
#! /bin/sh
# Send mail
echo "$SMARTD_MESSAGE" | mail -s "$SMARTD_FAILTYPE" "$SMARTD_ADDRESS"
# Notify desktop user
/usr/bin/notify-send -t 0 "WARNING: Your hard drive is failing"
"Description:
$SMARTD_MESSAGE"