File: prerm

package info (click to toggle)
wm2 4-8
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 236 kB
  • ctags: 415
  • sloc: cpp: 3,479; makefile: 51; sh: 39
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#