postrm 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 | #!/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" = remove -o "$1" = purge ]; then
for item in $files; do
dpkg-divert --package $package --rename --divert "/$item"".orig-brand" --remove "/$item"
done
sed -i "/NAME/s/Ubuntu Kylin/Ubuntu/g" /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" = remove -o "$1" = abort-install -o "$1" = disappear ]; then
dpkg-divert --package ubuntukylin-default-settings --rename --divert /usr/lib/firefox/distribution/distribution.ini.ubuntu-defaults --remove /usr/lib/firefox/distribution/distribution.ini
fi
# End automatically added section
# Automatically added by dh_ubuntu_defaults
if [ "$1" = remove -o "$1" = abort-install -o "$1" = disappear ]; then
dpkg-divert --package ubuntukylin-default-settings --rename --divert /usr/share/applications/defaults.list.ubuntu-defaults --remove /usr/share/applications/defaults.list
fi
# End automatically added section
|