]> git.proxmox.com Git - mirror_smartmontools-debian.git/commitdiff
Added /etc/smartmontools/run.d/10powersave-notify to enable desktop notification...
authorGiuseppe Iuculano <giuseppe@iuculano.it>
Mon, 31 Aug 2009 17:26:35 +0000 (19:26 +0200)
committerGiuseppe Iuculano <giuseppe@iuculano.it>
Mon, 31 Aug 2009 17:26:35 +0000 (19:26 +0200)
debian/10powersave-notify [new file with mode: 0644]
debian/control
debian/rules
debian/smartmontools.install

diff --git a/debian/10powersave-notify b/debian/10powersave-notify
new file mode 100644 (file)
index 0000000..4aaebbc
--- /dev/null
@@ -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"
index 50f230200df099beb75c52b06ce042500d9f44cf..a0b1f500118221f32ce55cdf85a41e8f68a24592 100644 (file)
@@ -15,7 +15,7 @@ Architecture: any
 Conflicts: smartsuite, ucsc-smartsuite
 Depends: ${misc:Depends}, ${shlibs:Depends}, debianutils (>= 2.2), lsb-base (>= 3.2-14)
 Recommends: mailx | mailutils
-Suggests: gsmartcontrol, smart-notifier
+Suggests: gsmartcontrol, smart-notifier, powersaved
 Description: control and monitor storage systems using S.M.A.R.T.
  The smartmontools package contains two utility programs (smartctl and smartd)
  to control and monitor storage systems using the Self-Monitoring, Analysis and
index b21a2548941f9457e6ba7665c13bdc3a73520167..147c6af8663a518c53be0a368720d258137d67a3 100755 (executable)
@@ -105,6 +105,7 @@ binary-arch: build install
        dh_compress
        dh_fixperms
        chmod 755 $(CURDIR)/debian/smartmontools/etc/smartmontools/run.d/10mail \
+               $(CURDIR)/debian/smartmontools/etc/smartmontools/run.d/10powersave-notify \
                $(CURDIR)/debian/smartmontools/usr/share/smartmontools/smartd-runner
        dh_makeshlibs
        dh_installdeb
index 14bc3ad7abd738092c9c69d4a4ff8442b0718264..bae997b98910c713749eb35bc62d946e821fbad4 100644 (file)
@@ -1,2 +1,3 @@
 debian/smartd-runner usr/share/smartmontools
 debian/10mail etc/smartmontools/run.d
+debian/10powersave-notify etc/smartmontools/run.d