diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-13 09:52:51 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-05-13 09:52:51 +0200 |
commit | 3566c737ecc35b17a09430eca8b6cb5fcc187245 (patch) | |
tree | 30cf569ba80d12afb158baba9c6257639eeead7a /src/daemon/smart_event.conf | |
parent | 7cfbac7966d99568565abea25a57522288d9a279 (diff) | |
parent | e123c5f3b4bdd10f3b495a4a948f6c452ed6205f (diff) | |
download | abrt-3566c737ecc35b17a09430eca8b6cb5fcc187245.tar.gz abrt-3566c737ecc35b17a09430eca8b6cb5fcc187245.tar.xz abrt-3566c737ecc35b17a09430eca8b6cb5fcc187245.zip |
Merge branch 'master' into report_api
Diffstat (limited to 'src/daemon/smart_event.conf')
-rw-r--r-- | src/daemon/smart_event.conf | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/daemon/smart_event.conf b/src/daemon/smart_event.conf new file mode 100644 index 00000000..e4b96b91 --- /dev/null +++ b/src/daemon/smart_event.conf @@ -0,0 +1,38 @@ +# Access to /dev/sda usually requires root. +# skdump is usually in /usr/sbin. +# Therefore we run it as post-create event, thus: under root. +# +# The code is identical for all three packages. +# +# To be moved to the packages, so that it is (de)installed +# together with these packages. + +# FIXME: not working yet, because program selection code +# looks at dump dir BEFORE running programs, +# thus, component is not created yet +# (it is created by 1st program in main .conf file) +# when program selection code looks at this file. + +EVENT=post-create component=gnome-disk-utility + which skdump 2>/dev/null || exit 0 + for f in /dev/[sh]d[a-z]; do + test -e "$f" || continue + skdump "$f" + echo + done >smart_data + +EVENT=post-create component=libatasmart + which skdump 2>/dev/null || exit 0 + for f in /dev/[sh]d[a-z]; do + test -e "$f" || continue + skdump "$f" + echo + done >smart_data + +EVENT=post-create component=udisks + which skdump 2>/dev/null || exit 0 + for f in /dev/[sh]d[a-z]; do + test -e "$f" || continue + skdump "$f" + echo + done >smart_data |