summaryrefslogtreecommitdiff
path: root/debian/xutils.preinst.in
blob: 296853f2fbfa55468986ad8b2f58b79c17d984df (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
#!/bin/sh

set -e

THIS_PACKAGE=xutils
THIS_SCRIPT=preinst

#INCLUDE_SHELL_LIB#

case "$1" in
install|upgrade)
  if dpkg --compare-versions "$2" lt-nl "1:7.3+11"; then
    remove_conffile_lookup xutils "/etc/X11/rstart/commands/x11r6/@List"
    remove_conffile_lookup xutils "/etc/X11/rstart/commands/x11r6/LoadMonitor"
    remove_conffile_lookup xutils "/etc/X11/rstart/commands/x11r6/Terminal"
    remove_conffile_lookup xutils "/etc/X11/rstart/commands/@List"
    remove_conffile_lookup xutils "/etc/X11/rstart/commands/ListContexts"
    remove_conffile_lookup xutils "/etc/X11/rstart/commands/ListGenericCommands"
    remove_conffile_lookup xutils "/etc/X11/rstart/contexts/@List"
    remove_conffile_lookup xutils "/etc/X11/rstart/contexts/default"
    remove_conffile_lookup xutils "/etc/X11/rstart/contexts/x11r6"
    remove_conffile_lookup xutils "/etc/X11/rstart/config"
    remove_conffile_lookup xutils "/etc/X11/rstart/rstartd.real"
  fi
esac

#DEBHELPER#

exit 0

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