diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-01-31 14:09:30 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-01-31 14:09:30 -0300 |
commit | f84cd7d1d50ebdbd10c36b7436e17742a9514f67 (patch) | |
tree | 3415d485d89b3f421a735d6adac9578d2dd6330a /~mtjm/cups-usblp/cups.install | |
parent | 69baf94c12da619e9b6c3dbb0e2cecad6409e298 (diff) | |
parent | 377f7fff82ea29f7f34ee2b4cce4147029a3b199 (diff) |
Merge branch 'master' of ssh://gparabola/abslibre
Diffstat (limited to '~mtjm/cups-usblp/cups.install')
-rw-r--r-- | ~mtjm/cups-usblp/cups.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/~mtjm/cups-usblp/cups.install b/~mtjm/cups-usblp/cups.install new file mode 100644 index 000000000..47c3d9b82 --- /dev/null +++ b/~mtjm/cups-usblp/cups.install @@ -0,0 +1,26 @@ +post_install() { + if [ -x usr/bin/xdg-icon-resource ]; then + xdg-icon-resource forceupdate --theme hicolor 2> /dev/null + fi + echo ">> If you use an HTTPS connection to CUPS, the first time you access" + echo ">> the interface it may take a very long time before the site comes up." + echo ">> This is because the first request triggers the generation of the CUPS" + echo ">> SSL certificates which can be a very time-consuming job." +} + +post_upgrade() { + if [ -x usr/bin/xdg-icon-resource ]; then + xdg-icon-resource forceupdate --theme hicolor 2> /dev/null + fi + if [ "`vercmp $2 1.4.7-2`" -lt 0 ]; then + # important upgrade notice + echo "daemon script has been renamed to /etc/rc.d/cupsd" + echo "change your entry in /etc/rc.conf" + fi +} + +post_remove() { + if [ -x usr/bin/xdg-icon-resource ]; then + xdg-icon-resource forceupdate --theme hicolor 2> /dev/null + fi +} |