update
This commit is contained in:
parent
4b42aa2fce
commit
e4b7f615fa
33 changed files with 543 additions and 0 deletions
9
smartdnotify
Executable file
9
smartdnotify
Executable 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:
|
||||
Loading…
Add table
Add a link
Reference in a new issue