summaryrefslogtreecommitdiff
path: root/debian/xutils.postinst.in
blob: 78b3123fc58f2c7a39beef9bbbf53f17c9f4c08f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

set -e

THIS_PACKAGE=xutils
THIS_SCRIPT=postinst

#INCLUDE_SHELL_LIB#

case "$1" in
configure)
  if dpkg --compare-versions "$2" lt-nl "1:7.3+11"; then
    remove_conffile_commit "/etc/X11/rstart/commands/x11r6/@List"
    remove_conffile_commit "/etc/X11/rstart/commands/x11r6/LoadMonitor"
    remove_conffile_commit "/etc/X11/rstart/commands/x11r6/Terminal"
    remove_conffile_commit "/etc/X11/rstart/commands/@List"
    remove_conffile_commit "/etc/X11/rstart/commands/ListContexts"
    remove_conffile_commit "/etc/X11/rstart/commands/ListGenericCommands"
    remove_conffile_commit "/etc/X11/rstart/contexts/@List"
    remove_conffile_commit "/etc/X11/rstart/contexts/default"
    remove_conffile_commit "/etc/X11/rstart/contexts/x11r6"
    remove_conffile_commit "/etc/X11/rstart/config"
    remove_conffile_commit "/etc/X11/rstart/rstartd.real"
    rmdir /etc/X11/rstart/commands/x11r6/ 2>/dev/null || true
    rmdir /etc/X11/rstart/commands/ 2>/dev/null || true
    rmdir /etc/X11/rstart/contexts/ 2>/dev/null || true
    rmdir /etc/X11/rstart/ 2>/dev/null || true
  fi
esac

#DEBHELPER#

exit 0

# vim:set ai et sts=2 sw=2 tw=0: