summaryrefslogtreecommitdiffstats
path: root/examplescripts/Example4
diff options
context:
space:
mode:
Diffstat (limited to 'examplescripts/Example4')
-rwxr-xr-xexamplescripts/Example48
1 files changed, 8 insertions, 0 deletions
diff --git a/examplescripts/Example4 b/examplescripts/Example4
new file mode 100755
index 0000000..4aaebbc
--- /dev/null
+++ b/examplescripts/Example4
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+# Send message if /usr/lib/powersave/powersave-notify exists or exit silently
+[ -x /usr/lib/powersave/powersave-notify ] || exit 0
+
+/usr/lib/powersave/powersave-notify "<b>Your hard disk drive is failing!</b>
+S.M.A.R.T. message:
+$SMARTD_MESSAGE"