This file is indexed.

preinst is in ubuntukylin-default-settings 1.4.4.

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
#!/bin/sh
set -e
package=ubuntukylin-default-settings

files="
usr/share/ubiquity/pixmaps/ubuntu_installed.png
usr/share/language-selector/data/pkg_depends
"

if [ "$1" = install -o "$1" = upgrade ]; then
    for item in $files; do
        dpkg-divert --package $package --rename --divert "/$item"".orig-brand" --add "/$item"
    done
    sed -i 's/\(NAME="Ubuntu\)"/\1 Kylin"/' /etc/os-release
    sed -i 's/\(PRETTY_NAME="Ubuntu\) 1/\1 Kylin 1/' /etc/os-release
    rm -f /usr/share/language-support/incomplete-language-support-gnome.note
fi