This commit is contained in:
Ray Elliott 2020-08-09 13:53:06 +01:00
commit e4b7f615fa
33 changed files with 543 additions and 0 deletions

9
smartdnotify Executable file
View file

@ -0,0 +1,9 @@
#!/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: