File: prerm

package info (click to toggle)
wm2 4-9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 228 kB
  • ctags: 411
  • sloc: cpp: 3,460; makefile: 62; sh: 23
file content (16 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh -e

case "$1" in
  upgrade) ;;
  failed-upgrade)
    if dpkg --compare-versions "$2" '<<' "4-6" ; then
     update-alternatives --remove x-window-manager /usr/bin/X11/wm2
     update-alternatives --remove x-window-manager /usr/X11R6/bin/wm2
    fi
    ;;
  remove)
    update-alternatives --remove x-window-manager /usr/bin/wm2
    ;;
esac

#DEBHELPER#