summaryrefslogtreecommitdiff
path: root/fluxbox/debian/fluxbox.preinst
blob: 35d8239866b65c240dbbc2878016c2aa4cd2ad12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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#
bgstack15