This file is indexed.

preinst is in gdm 3.10.0.1-0ubuntu3.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh -e

rm_conffile() {
  PKGNAME="gdm"
  CONFFILE="$1"

  if [ -e "$CONFFILE" ]; then
   md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`"
   old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`"
   if [ "$md5sum" != "$old_md5sum" ]; then
     echo "Obsolete conffile $CONFFILE has been modified by you."
     echo "Saving as $CONFFILE.dpkg-bak ..."
     mv -f "$CONFFILE" "$CONFFILE".dpkg-bak
   else
     echo "Removing obsolete conffile $CONFFILE ..."
     rm -f "$CONFFILE"
   fi
 fi
}

if [ "$1" = "upgrade" ] || [ "$1" = "install" ] && \
    # earlier releases used /etc/gdm/gdm.conf-custom, but upstream uses
    # custom.conf
    dpkg --compare-versions "$2" le-nl "2.26.1-0ubuntu5"; then
    if [ -f /etc/gdm/gdm.conf-custom ]; then
	echo "Renaming /etc/gdm/gdm.conf-custom to /etc/gdm/custom.conf" >&2
	mv /etc/gdm/gdm.conf-custom /etc/gdm/custom.conf
    fi

    # migrate autologin settings
    if ! egrep -q '^(Automatic|Timed)Login(Enable|Delay|)=' /etc/gdm/custom.conf; then
	settings="`egrep '^((Automatic|Timed)LoginEnable=[^f])|^((Automatic|Timed)Login=.)|^TimedLoginDelay=[^3]' /etc/gdm/gdm.conf`" || true
	if [ -n "$settings" ]; then
	    echo '[daemon]' >> /etc/gdm/custom.conf
	    echo "$settings" >> /etc/gdm/custom.conf
	fi
    fi

    # obsolete conffiles
    rm_conffile /etc/gdm/gdm.conf
    rm_conffile /etc/gdm/locale.conf
    rm_conffile /etc/gdm/gdmprefetchlist
    rm_conffile /etc/gdm/XKeepsCrashing
    rm_conffile /etc/gdm/modules/AccessKeyMouseEvents
    rm_conffile /etc/gdm/modules/factory-AccessKeyMouseEvents
    rm_conffile /etc/gdm/modules/AccessDwellMouseEvents
    rm_conffile /etc/gdm/modules/factory-AccessDwellMouseEvents
fi

if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
    dpkg-maintscript-helper rm_conffile /etc/X11/Xsession.d/60xdg_path-on-session 3.0.4-0ubuntu4 -- "$@"
fi

# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
	if [ -e "/etc/init.d/gdm" ] && [ -L "/etc/init.d/gdm" ] \
	   && [ $(readlink -f "/etc/init.d/gdm") = /lib/init/upstart-job ]
	then
		rm -f "/etc/init.d/gdm"
	fi
fi
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/gdm/greeter.gconf-defaults 3.4 -- "$@"
# End automatically added section