smartmontools/smartdnotify

10 lines
233 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
2011-02-17 16:14:06 +00:00
/usr/bin/notify-send -t 0 "WARNING: Your hard drive is failing" "Description:
$SMARTD_MESSAGE" >/dev/null 2>&1 ||: