* Vahis
On 08.10.2014 11:50, Guido Berhoerster wrote:
I have smartd configured to execute a script that creates a warning message via wall(1) and I think that's a pretty robust solution. It will generate a message on every console a user is logged in (in case he isn't using X), on every terminal emulator, and a desktop notification via kwrited on KDE or xwrited on Xfce/GNOME/LXDE.
Sounds like exactly what I would like to have, too :)
You don't happen to have dummie's instructions somewhere, do you?
Well, it's rather simple. Put the following line in /etc/smartd.conf: DEVICESCAN -d removable -m <nomailer> -M exec /usr/local/lib/smartd_wall.sh Then create /usr/local/lib/smartd_wall.sh and make it executable: ----8<---- #!/bin/sh export PATH=/bin:/sbin:/usr/bin:/usr/sbin printf "%s\n" "${SMARTD_MESSAGE}" | wall -n ---->8---- If you're running KDE that's all you have to do, otherwise you need to download and install https://hg.guido-berhoerster.org/projects/xwrited/archive/tip.tar.bz2 or wait until I package it in home:gberh/xwrited later. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org