10 lines
270 B
Bash
Executable File
10 lines
270 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#notify user
|
|
sudo -u ray DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send -u critical "$SMARTD_MESSAGE"
|
|
|
|
#send email
|
|
echo "$SMARTD_MESSAGE" | su ray -c "neomutt -s \"$SMARTD_FAILTYPE\" \"$SMARTD_ADDRESS\""
|
|
|
|
# vim: set filetype=sh:
|