10 lines
233 B
Bash
10 lines
233 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" >/dev/null 2>&1 ||:
|
|
|