diff options
Diffstat (limited to 'fluxbox/debian/fluxbox.preinst')
-rw-r--r-- | fluxbox/debian/fluxbox.preinst | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/fluxbox/debian/fluxbox.preinst b/fluxbox/debian/fluxbox.preinst new file mode 100644 index 0000000..35d8239 --- /dev/null +++ b/fluxbox/debian/fluxbox.preinst @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +# Remove old diverts +if [ "$1" = "upgrade" ]; then + if dpkg-divert --list | grep -q fluxbox; then + dpkg-divert --package fluxbox --remove --rename --divert \ + /usr/bin/bsetroot.blackbox /usr/bin/bsetroot + + dpkg-divert --package fluxbox --remove --rename --divert \ + /usr/share/man/man1/bsetroot.blackbox.1.gz \ + /usr/share/man/man1/bsetroot.1.gz + fi + + # old version contain 'fluxbox' current - 'startfluxbox' + update-alternatives --remove x-window-manager /usr/bin/fluxbox + +fi + +#DEBHELPER# |