File: postrm

package info (click to toggle)
suckless-tools 42-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 736 kB
  • ctags: 785
  • sloc: ansic: 3,133; makefile: 493; sh: 83
file content (18 lines) | stat: -rwxr-xr-x 436 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if [ "$1" = "abort-upgrade" ]; then
    # If we abort-upgrade from a version less than '41',
    # re-add dmenu alternatives
    if dpkg --compare-versions "$2" lt "41"; then
        update-alternatives --quiet --install /usr/bin/dmenu dmenu \
            /usr/bin/dmenu.default 100
        update-alternatives --quiet --install /usr/bin/dmenu dmenu \
            /usr/bin/dmenu.xft 50
    fi
fi

#DEBHELPER#

exit 0