preinst is in ubuntukylin-default-settings 1.3.14.
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 | #!/bin/sh
set -e
package=ubuntukylin-default-settings
files="
usr/share/unity-control-center/ui/UbuntuLogo.png
usr/share/ubiquity/pixmaps/ubuntu_installed.png
usr/share/language-selector/data/pkg_depends
usr/share/unity-control-center/searchingthedashlegalnotice.html
usr/share/unity/icons/searchingthedashlegalnotice.html
"
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 /etc/ubuntukylin-release
rm -f /usr/share/language-support/incomplete-language-support-gnome.note
fi
# Automatically added by dh_ubuntu_defaults
if [ "$1" = install -o "$1" = upgrade ]; then
dpkg-divert --package ubuntukylin-default-settings --rename --divert /usr/share/applications/defaults.list.ubuntu-defaults --add /usr/share/applications/defaults.list
fi
# End automatically added section
# Automatically added by dh_ubuntu_defaults
if [ "$1" = install -o "$1" = upgrade ]; then
dpkg-divert --package ubuntukylin-default-settings --rename --divert /usr/lib/firefox/distribution/distribution.ini.ubuntu-defaults --add /usr/lib/firefox/distribution/distribution.ini
fi
# End automatically added section
|