smartmontools/smartdnotify
2011-02-17 17:04:48 +01:00

10 lines
212 B
Bash

#! /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"