diff options
Diffstat (limited to 'extra/xfce4-sensors-plugin/xfce4-sensors-plugin.install')
-rw-r--r-- | extra/xfce4-sensors-plugin/xfce4-sensors-plugin.install | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/extra/xfce4-sensors-plugin/xfce4-sensors-plugin.install b/extra/xfce4-sensors-plugin/xfce4-sensors-plugin.install index 17ca8f78a..ef6375367 100644 --- a/extra/xfce4-sensors-plugin/xfce4-sensors-plugin.install +++ b/extra/xfce4-sensors-plugin/xfce4-sensors-plugin.install @@ -1,11 +1,25 @@ -post_install() { +post_common() { gtk-update-icon-cache -q -t -f usr/share/icons/hicolor } +post_install() { + post_common + + echo '> Make sure the hddtemp daemon is running, otherwise xfce4-sensors will' + echo '> crash on start.' +} + post_upgrade() { - post_install $1 + post_common + + if (($(vercmp $2 1.2.3-4) < 0)); then + echo '> Make sure the hddtemp daemon is running, otherwise xfce4-sensors will' + echo '> crash on start.' + fi } post_remove() { - post_install $1 + post_common } + +# vim:set ts=2 sw=2 et: |