This file is indexed.

postinst is in mythbuntu-default-settings 1.13.

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
66
67
68
69
70
71
72
73
74
75
#! /bin/sh

set -e

# Move a conffile without triggering a dpkg question
mv_conffile() {
    local OLDCONFFILE="$1"
    local NEWCONFFILE="$2"

    [ -e "$OLDCONFFILE" ] || return 0

    echo "Preserving user changes to $NEWCONFFILE ..."
    mv -f "$NEWCONFFILE" "$NEWCONFFILE".dpkg-new
    mv -f "$OLDCONFFILE" "$NEWCONFFILE"
}

case "$1" in
  configure|upgrade)
        if dpkg --compare-versions "${2}" le-nl "0.59-0ubuntu1" && [ -f /etc/xdg/mythbuntu/autostart/Network\ Manager.desktop ]; then
            rm /etc/xdg/mythbuntu/autostart/Network\ Manager.desktop
        fi
        if dpkg --compare-versions "${2}" le-nl "0.79-0ubuntu1";
            then update-alternatives --remove gdm-config-derivative /etc/xdg/mythbuntu/gdm/gdm.conf
        fi
        if dpkg --compare-versions "${2}" le-nl "0.82-0ubuntu1"; then
            dpkg-divert --package mythbuntu-default-settings --remove --rename\
                        --divert /usr/share/xsessions/gnome.desktop.diverted /usr/share/xsessions/gnome.desktop
        fi
        if [ -x /usr/lib/gdm/gdm-set-default-session ] ; then
            /usr/lib/gdm/gdm-set-default-session --keep-old mythbuntu || true
        fi
        if dpkg --compare-versions "$2" lt "0.86-0ubuntu2"; then
            mv_conffile "/etc/xdg/mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml" "/etc/xdg/xdg-mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml" "/etc/xdg/xdg-mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml" "/etc/xdg/xdg-mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml" "/etc/xdg/xdg-mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml" "/etc/xdg/xdg-mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xfprint.xml" "/etc/xdg/xdg-mythbuntu/xfce4/xfconf/xfce-perchannel-xml/xfprint.xml"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/tasklist-2.rc" "/etc/xdg/xdg-mythbuntu/xfce4/panel/tasklist-2.rc"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/separator-3.rc" "/etc/xdg/xdg-mythbuntu/xfce4/panel/separator-3.rc"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/pager-3.rc" "/etc/xdg/xdg-mythbuntu/xfce4/panel/pager-3.rc"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/actions-6.rc" "/etc/xdg/xdg-mythbuntu/xfce4/panel/actions-6.rc"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/xfce4-menu-1.rc" "/etc/xdg/xdg-mythbuntu/xfce4/panel/xfce4-menu-1.rc"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/clock-5.rc" "/etc/xdg/xdg-mythbuntu/xfce4/panel/clock-5.rc"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/systray-4.rc" "/etc/xdg/xdg-mythbuntu/xfce4/panel/systray-4.rc"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/panels.xml" "/etc/xdg/xdg-mythbuntu/xfce4/panel/panels.xml"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/launcher-2.rc" "/etc/xdg/xdg-mythbuntu/xfce4/panel/launcher-2.rc"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/launcher-3.rc" "/etc/xdg/xdg-mythbuntu/xfce4/panel/launcher-3.rc"
            mv_conffile "/etc/xdg/mythbuntu/xfce4/panel/tasklist-11907684281.rc" "/etc/xdg/xdg-mythbuntu/xfce4/panel/tasklist-11907684281.rc"
            mv_conffile "/etc/xdg/mythbuntu/applications/defaults.list" "/etc/xdg/xdg-mythbuntu/applications/defaults.list"
            mv_conffile "/etc/xdg/mythbuntu/menus/xfce-applications.menu" "/etc/xdg/xdg-mythbuntu/menus/xfce-applications.menu"
            mv_conffile "/etc/xdg/mythbuntu/Thunar/volmanrc" "/etc/xdg/xdg-mythbuntu/Thunar/volmanrc"
            mv_conffile "/etc/xdg/mythbuntu/Thunar/thunarrc" "/etc/xdg/xdg-mythbuntu/Thunar/thunarrc"
        fi
        update-alternatives \
            --install /usr/share/plymouth/themes/default.plymouth default.plymouth \
            /usr/share/plymouth/themes/mythbuntu-logo/mythbuntu-logo.plymouth 150

        update-alternatives \
            --install /usr/share/plymouth/themes/text.plymouth text.plymouth \
            /usr/share/plymouth/themes/mythbuntu-text/mythbuntu-text.plymouth 150

        if which update-initramfs >/dev/null 2>&1
        then
            update-initramfs -u
        fi
    ;;
esac


# Automatically added by dh_icons
if which update-icon-caches >/dev/null 2>&1 ; then
	update-icon-caches /usr/share/icons/Mythbuntu
fi
# End automatically added section